Coder Social home page Coder Social logo

sql.givemethegoods's Introduction

Give Me the Goods: More Introductory SQL Queries

Like

Wildcards (Regex)

Select all records from the Students table where the second letter of the City is an "a".

(Add your query to the file exercise1.sql)

Select all records from the Students table where the first letter of the City is an "a" or a "c" or an "s".

(Add your query to the file exercise2.sql)

Select all from the Students table records where the first letter of the City starts with anything from an "a" to an "f".

(Add your query to the file exercise3.sql)

Select all records from the Students table where the first letter of the City is NOT an "a" or a "c" or an "f".

(Add your query to the file exercise4.sql)

IN

Use the IN operator to select all the records from the Students table where Country is either "Sint Maarten" or "Haiti".

(Add your query to the file exercise5.sql)

Use the IN operator to select all the records from the Students table where Country is NOT "Sint Maarten" and NOT "Haiti".

(Add your query to the file exercise6.sql)

Between values

Use the BETWEEN operator to select all the records from the Courses table where the value of the CreditHours column is between 10 and 20.

(Add your query to the file exercise7.sql)

Use the BETWEEN operator to select all the records from the Courses table where the value of the CreditHours column is NOT between 10 and 20.

(Add your query to the file exercise8.sql)

Use the BETWEEN operator to select all the records from the Courses table where the value of the CourseName column is alphabetically between 'ColdFusion' and 'Python'.

(Add your query to the file exercise9.sql)

Aliases

When displaying the Students table, make an alias of the PostalCode column, the column should be called Zip instead.

(Add your query to the file exercise10.sql)

When displaying the Students table, refer to the table as Learners instead of Students.

(Add your query to the file exercise11.sql)

sql.givemethegoods's People

Contributors

thesleuth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.