Learn the fundamentals of SQL in this comprehensive tutorial video. We cover essential clauses like ORDER BY. Whether you're a beginner or looking to refresh your skills, this video will help you understand these key concepts with clear explanations and practical examples. Don't forget to like, comment, and subscribe for more SQL tutorials!
//CREATE TABLE and INSERT DATA USING THIS CODE
CREATE TABLE employees (
id INT, -- employee ID
name VARCHAR(100) NOT NULL, -- Employee name, required field
age INT, -- Employee age
last_salary DECIMAL(10, 2), -- Employee's previous salary
new_salary DECIMAL(10, 2), -- Employee's current salary
hire_date DATE -- Date when the employee was hired
);
// inserting records
INSERT INTO employees (id, name, age, last_salary, new_salary, hire_date) VALUES
(1, 'John Doe', 28, 50000.00, 55000.00, '2020-01-15'),
(1, 'John Doe', 29, 50000.00, 55000.00, '2020-01-15'),
(2, 'Jane Smith', 34, 60000.00, 62000.00, '2018-03-22'),
(2, 'Jane Smith', 34, 60000.00, 62000.00, '2018-03-22'),
(3, 'Emily Johnson', 29, 48000.00, 50000.00, '2019-06-30'),
(4, 'Michael Brown', 42, 70000.00, 72000.00, '2017-08-05'),
(5, 'Anna Davis', 31, 52000.00, 72000.00, '2021-02-11');
#SQLServer #SQL #TSQL #ORDERBYClause #SQLTutorial #MicrosoftSQLServer #SQLForBeginners #LearnSQL #SQLQueries #DatabaseQuery #SQLProgramming #DataEngineering #SQLServerTutorial #SQLBasics #DataScience