Topview Logo
  • Create viral videos with
    GPT-4o + Ads library
    Use GPT-4o to edit video empowered by Youtube & Tiktok & Facebook ads library. Turns your links or media assets into viral videos in one click.
    Try it free
    gpt video

    Visual SQL Query Builder

    blog thumbnail

    Visual SQL Query Builder

    Working with databases is not an easy task. Writing database queries may require SQL knowledge. However, solving this task can be done visually. In this article, I will introduce you to DB schema, a database designer tool that can help simplify this process.

    DB schema has a free Community Edition available on dbschema.com. Using DB schema, we can connect to any database, and the schema structure will be loaded and shown as diagrams.

    Here is a step-by-step guide on how to visually build SQL queries using DB schema:

    1. Load the Schema:

      • After connecting to the database, the schema structure is automatically loaded and displayed as diagrams.
    2. Select Columns:

      • Click on the table header and choose the Query Builder.
      • In the Query Builder, tick the columns you want to select.
    3. Run the Query:

      • You can run the query and see the generated query on the right side of the screen.
    4. Join Tables:

      • Join more tables by clicking the foreign key icon near columns.
      • Use the foreign key label to switch between outer join, left join, and exists or not exists clauses.
    5. Virtual Foreign Keys:

      • If the schema is missing foreign keys, you can create virtual foreign keys in the layout by dragging and dropping one column over the referred column.
    6. Set Table Alias:

      • Set an alias for the table by double-clicking the table header.
    7. Filter Data:

      • Filter the data by right-clicking any column.
    8. Aggregate Functions:

      • By adding an aggregate function, the query will use the Group By clause.
    9. Save Query Builder:

      • The Query Builder will be saved as part of the DB schema model and can be reopened the next time you start DB schema.

    Thanks for watching.


    Keywords

    • Database
    • SQL
    • DB schema
    • Query Builder
    • Schema Diagrams
    • Foreign Key
    • Table Alias
    • Aggregate Function
    • Group By
    • Virtual Foreign Keys

    FAQ

    Q1: What is DB schema? A1: DB schema is a database designer tool that helps you visually build SQL queries. You can create and manage database schemas through an intuitive, diagram-based interface.

    Q2: How can I connect DB schema to a database? A2: You can connect to any database using DB schema by selecting the appropriate database connection settings when you start the application.

    Q3: What is a Query Builder in DB schema? A3: The Query Builder allows you to visually build SQL queries by selecting columns and setting conditions without writing SQL code manually.

    Q4: Can I join multiple tables using DB schema? A4: Yes, you can join multiple tables by using the foreign key icon near columns. The tool also supports various join types like outer join, left join, and exists/not exists clauses.

    Q5: What if my schema is missing foreign keys? A5: If your schema is missing foreign keys, you can create virtual foreign keys in the layout by dragging and dropping one column over the referred column.

    Q6: Can DB schema save my queries? A6: Yes, the Query Builder will be saved as part of the DB schema model and can be reopened the next time you start DB schema.

    One more thing

    In addition to the incredible tools mentioned above, for those looking to elevate their video creation process even further, Topview.ai stands out as a revolutionary online AI video editor.

    TopView.ai provides two powerful tools to help you make ads video in one click.

    Materials to Video: you can upload your raw footage or pictures, TopView.ai will edit video based on media you uploaded for you.

    Link to Video: you can paste an E-Commerce product link, TopView.ai will generate a video for you.

    You may also like