Skip to content

XIAOLONGLII/SQL_practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 

Repository files navigation

MS SQL Server

This is the SQL practice to let me understand how this works in a very efficient way!


Day 24 MS SQL Server -Create Procedure

create_procedure

Day 24 MS SQL Server -View:

t-sql-createview

Day 23 MS SQL Server -View- Create a View

view

Day 23 MS SQL Server -EXIST- NOT EXIST

exists_not_exists

Day 23 MS SQL Server - Nest query

nest_query

Day 22 MS SQL Server - Character Functions - Substring, replace, replicate

character_functions

Day 21 MS SQL Server - LIKE, N'%i%

like_n_ _n

Day 20 MS SQL Server - Date Time

time_now

Day 19 MS SQL Server - Aggregates funtions _Count, _AVG, _MIN, _Max

aggregates_count_avg_sum_min_max


Day 18 MS SQL Server - TOP(20)/ TOP(20) TIES WITH

top_top_ties_with

Day 18 MS SQL Server - GROUP BY

group_by

Day 17 MS SQL Server - ORDER BY

order_by

Order by 1 , 2 (Column number)

order_by_column

Day 16 MS SQL Server - Join

inner_left_right_full_outer_join

Day 16 MS SQL Server - IN Between AND


between_and

Day 15 MS SQL Server - > AS[name] is different as AS name

WHERE clause

where_clause

Case Then Else

case_then_else

when String is null, return null

string_null_null

As[]and AS name

as_ _

Day 14 MS SQL Server - > Insert INTO, UPDATE SET

update_set insert

Day 13 MS SQL Server - > github samples

save_not_formated format_number 1 12

Day 12 MS SQL Server: Installation, Stored Procedure

12


query 1

Day 11 IN, Order by


screen shot 2018-06-04 at 7 03 26 am screen shot 2018-06-04 at 7 05 35 am screen shot 2018-06-04 at 7 06 18 am

Day 10 LIKE '% c %' '% c ' 'c %'

screen shot 2018-06-03 at 3 47 29 pm screen shot 2018-06-03 at 3 47 49 pm screen shot 2018-06-03 at 3 48 12 pm

Day 9 + - x / as


screen shot 2018-06-03 at 1 56 47 pm

Day 8 Where (equals =) (equals and greater than >=) (equals and less than <=) (not equals to !=)


screen shot 2018-06-02 at 3 10 32 pm

screen shot 2018-06-02 at 3 04 49 pm

Day 7 Order by


screen shot 2018-06-02 at 1 48 23 pm screen shot 2018-06-02 at 1 48 55 pm

Day 6 LIMIT


screen shot 2018-06-01 at 10 42 56 am

Day 5


screen shot 2018-05-31 at 7 02 14 am


Udacity Course 1

screen shot 2018-05-31 at 6 31 33 am

Day 1, May 10:

  1. Creating a table and insert data into it.

screen shot 2018-05-10 at 11 31 55 am

  1. Select all the movies.

screen shot 2018-05-10 at 11 33 07 am

  1. Add a second query after the first, that retrieves only the movies that were released in the year 2000 or later, not before. Sort the results so that the earlier movies are listed first.

screen shot 2018-05-10 at 11 33 18 am

  1. Select the SUM of minutes it will take to do all of the items on your TODO list.

screen shot 2018-05-10 at 11 35 43 am

Day2 May 11:(aggregate functions)

  1. SUM COUNT AVERAGE

screen shot 2018-05-10 at 6 41 56 am

a, Add another SELECT that uses OR to show the titles of the songs that have an 'epic' mood or a release date after 1990. b, Add another SELECT that uses AND to show the titles of songs that are 'epic', and released after 1990, and less than 4 minutes long.

screen shot 2018-05-10 at 1 09 11 pm

Day 3 May 12:(Querying IN subqueries)

screen shot 2018-05-11 at 7 03 16 am

screen shot 2018-05-11 at 7 03 27 am

screen shot 2018-05-11 at 7 03 42 am

screen shot 2018-05-11 at 7 03 53 am

Day 4 May 14:(Having, Group by)

screen shot 2018-05-14 at 6 49 23 am screen shot 2018-05-14 at 6 49 47 am

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published