Ad
Code
Diff
  • -- Code Here
    SELECT 
    * 
    FROM transactions
    WHERE Customer LIKE 'D%' OR Customer LIKE 'E%'
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM transactions
    • WHERE Customer LIKE 'D%' OR Customer LIKE 'E%'
Code
Diff
  • -- Code Here
    SELECT 
    * 
    FROM employees
    WHERE salary > 5000000 AND months >= 12
    ORDER BY salary DESC
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM employees
    • WHERE salary > 5000000 AND months >= 12
    • ORDER BY salary DESC
Code
Diff
  • -- Code Here
    SELECT 
    * 
    FROM employees
    ORDER BY salary DESC
    LIMIT 10
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM employees
    • ORDER BY salary DESC
    • LIMIT 10
Code
Diff
  • -- Code Here
    SELECT 
    * 
    FROM transactions
    WHERE Customer IS NOT NULL
    ORDER BY store, total_price DESC
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM transactions
    • WHERE Customer IS NOT NULL
    • ORDER BY store, total_price DESC
Code
Diff
  • -- Code Here
    SELECT
    *
    FROM transactions
    ORDER BY total_price DESC
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM transactions
    • ORDER BY total_price DESC
Code
Diff
  • -- Code Here
    SELECT
    *
    FROM transactions
    ORDER BY total_price
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM transactions
    • ORDER BY total_price
Code
Diff
  • -- Code Here
    SELECT 
    * 
    FROM transactions
    WHERE customer LIKE 'S%' AND customer LIKE '%r'
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM transactions
    • WHERE customer LIKE 'S%' AND customer LIKE '%r'
Code
Diff
  • -- Code Here
    SELECT 
    *
    FROM transactions
    WHERE Customer IS NOT NULL
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM transactions
    • WHERE Customer IS NOT NULL
Code
Diff
  • -- Code Here
    SELECT 
    *
    FROM transactions
    WHERE Customer IS NULL
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM transactions
    • WHERE Customer IS NULL
Code
Diff
  • -- Code Here
    SELECT 
    * 
    FROM transactions
    WHERE store NOT IN ('BIE Store Jakarta','BIE Store Bandung')
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM transactions
    • WHERE store NOT IN ('BIE Store Jakarta','BIE Store Bandung')
Code
Diff
  • -- Code Here
    SELECT 
    * 
    FROM transactions 
    WHERE
    Store IN ('BIE Store Bandung','BIE Store Palembang','BIE Store Malang')
    • --- Code Here
    • -- Code Here
    • SELECT
    • *
    • FROM transactions
    • WHERE
    • Store IN ('BIE Store Bandung','BIE Store Palembang','BIE Store Malang')
Code
Diff
  • -- Code Here
    SELECT date, store, total_price 
    FROM transactions
    WHERE date >= '2022-01-01' AND date <= '2022-01-03'
    • --- Code Here
    • -- Code Here
    • SELECT date, store, total_price
    • FROM transactions
    • WHERE date >= '2022-01-01' AND date <= '2022-01-03'
Code
Diff
  • -- Code Here
    SELECT * FROM transactions WHERE store = 'BIE Store Bandung' AND total_price <= 100000
    • --- Code Here
    • -- Code Here
    • SELECT * FROM transactions WHERE store = 'BIE Store Bandung' AND total_price <= 100000
Code
Diff
  • -- Code here
    SELECT id, name, age, kota FROM customers WHERE kota = 'Tasikmalaya'
    • --- Code here
    • -- Code here
    • SELECT id, name, age, kota FROM customers WHERE kota = 'Tasikmalaya'
Code
Diff
  • -- Code Here
    SELECT name, age FROM customers
    • --- Code Here
    • -- Code Here
    • SELECT name, age FROM customers
Loading more items...