Azlaan Electric AC Solar Center — Solar, CCTV, AC & electrical work, Faisalabad Call: 0300-8987448

SQL Query Builder

Build a SELECT query visually — no SQL knowledge needed. Fill in the fields below and the finished query appears instantly. It only writes the SQL text; it does not connect to any database.

Use * for all columns, or a comma-separated list.
WHERE filters
No filters yet. Click "Add filter" to keep only rows that match a condition.
Live SQL preview

Tip: numbers stay unquoted; text values are quoted and escaped automatically. IS NULL and IS NOT NULL need no value.

Example queries

  • All orders from one customer, newest first: SELECT * FROM orders WHERE customer_id = 42 ORDER BY created_at DESC LIMIT 50;
  • Distinct active product names containing "phone": SELECT DISTINCT name FROM products WHERE name LIKE '%phone%' AND status = 'active';