DEV Community

AsadullohRuziev
AsadullohRuziev

Posted on

PostgreSQL unit-8

Image description

SELECT * FROM users WHERE date_of_birth BETWEEN DATE '2000-05-05' AND  '2008-01-01' ORDER BY date_of_birth;
Enter fullscreen mode Exit fullscreen mode

Image description

Image description

SELECT * FROM users WHERE email LIKE '%.com';
Enter fullscreen mode Exit fullscreen mode

Image description

SELECT * FROM users WHERE email LIKE '%web%';
Enter fullscreen mode Exit fullscreen mode

Image description

SELECT * FROM users WHERE email LIKE '_______@%';
Enter fullscreen mode Exit fullscreen mode

Image description

SELECT * FROM users WHERE country ILIKE 'p%';
Enter fullscreen mode Exit fullscreen mode
SELECT * FROM users WHERE country LIKE 'p%';
Enter fullscreen mode Exit fullscreen mode

Image description
Image description

Top comments (0)