0% found this document useful (0 votes)
6 views

SQL Notes

Sql queries a beginner might want to read

Uploaded by

kyliejones48530
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

SQL Notes

Sql queries a beginner might want to read

Uploaded by

kyliejones48530
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

CREATE TABLE user_Data (

serial_num number(5),
username varchar(50),
password varchar(10)
)

INSERT INTO User_Data values (00251, 'silly.ghost22', 'sillyvery$$1');


INSERT INTO User_Data values (00354, 'free_tips302', 'gOdisme2093*!');
INSERT INTO User_Data values (00102, 'jksrightpillow_', 'JkisGod90&');
INSERT INTO User_Data values (00987, 'headFree_or_freeHead', 'goofing01_1');
INSERT INTO User_Data values (00143, '142_127_119', 'NCTits');
INSERT INTO User_Data values (00127, 'Regular_huh?', 'NCT0as');
INSERT INTO User_Data values (00127, 'save_your_tearsfor.today', 'NCTcrumbs');

SELECT username from User_Data where serial_num = 127;


SELECT username from User_Data where password = 'NCTits';

SELECT *From User_Data ORDER by password, serial_num, username;

SELECT DISTINCT username From User_Data;

DELETE from User_Data where serial_num = 251;

UPDATE User_Data set username = 'free_grips;)' where serial_num = 354;

INSERT into User_Data values (00119, 'GIDLEexceeds.Expectations', 'SlayG1DlE%');

You might also like