Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Sample SQL Applications Asst. Prof. Emin Korkut.

Similar presentations


Presentation on theme: "1 Sample SQL Applications Asst. Prof. Emin Korkut."— Presentation transcript:

1 1 Sample SQL Applications Asst. Prof. Emin Korkut

2 2 The data in a database is case sensitive while the SQL commands are case insensitive. This means that you can write SQL commands either in lowercase or uppercase but you must obey the case of string characters in a term related to the data in a database. Each SQL query must terminate with a semicolon because a semicolon tells to the command--line SQL program that the given query is complete. SELECT * FROM STUDENTS select faculty, program, register_no, name, surname from students;

3 3 select register_no, faculty, program, name, surname from students; select name, surname from students; select faculty from students; select distinct faculty from students;

4 4 SQL employs the expressions. An expression is something which returns value. The types of the expressions may vary covering the data types like String, Numeric, and Boolean. In SQL terminology, anything following a clause like SELECT or FROM is an expression. In the above samples, for example, faculty is an expression. It returns the value contained in the faculty column. select * from courses select * from courses where Instructor =‘Metin Demiralp’;

5 5 select * from prices


Download ppt "1 Sample SQL Applications Asst. Prof. Emin Korkut."

Similar presentations


Ads by Google