DEV Community

AsadullohRuziev
AsadullohRuziev

Posted on

PostgresSQL unit-6

SELECT DISTINCT country FROM users ORDER BY country;
Enter fullscreen mode Exit fullscreen mode

Image description

SELECT * FROM users WHERE gender='Female';
Enter fullscreen mode Exit fullscreen mode

Image description

SELECT * FROM users WHERE gender='Female' AND country='China';
Enter fullscreen mode Exit fullscreen mode

Image description

SELECT * FROM users WHERE gender='Female' AND (country='China' OR country='Russia');
Enter fullscreen mode Exit fullscreen mode

Image description

Top comments (0)