Skip to content
VUBuddy

CS403 SQL Queries by Junaid

Database Management Systems PDF 373 KBUpdated 23 Oct 2026
Quiz CS403 SQL Queries by Junaid PDF 373 KB
vubuddy.com
Type
Quiz
Course
CS403 Database Management Systems
Size
PDF 373 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 373 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 2, 3, 4 of 8. Download the file for all 8 pages.

DDL (DATA DIFINITION LANGUAGE)

DDL میں ہم

  •  Create Table
  •  ALTER Table
  •  Drop Table
  •  Truncate table
  •  Rename کرسکتے ہیں

1۔TABLE بنانے کیلیئے ہم یہ Code لکھتے ہیں۔

2۔اگر ہمTABLE کاLogical Structure دیکھنا چاہتے ہیں

describe employee؛

3۔اگر ہم ک سی TABLE کوadd کرنا چاہتے ہیں

Altar Command

TRUNCATE Command

4۔Records کوDelete کرنا ہو تو ٹیبل میں سے۔

truncate table employee;

DROP Command:

5۔ اگر ہم TABLE کوDELETE کرنا ہو

DML (DATA MANIPULATION LANGUAGE) DML سے ہم نے جو DATA STRUCTURE لکھی ہوئی ہوتی ہے اسے

  •  Insert
  •  Update کر سکتے ہیں
  •  Delete کر سکتے ہیں ۔ ۔Insert کرنے کیلیئے ہم یہCode لکھتے ہیں۔Values کو جبadd کرتے ہیں

insert into employee (emp_id,first_name,last_name,salary) values ('9','shoaib','malik','500'); insert into employee (emp_id, first_name,last_name,salary) values ('7','junaid','prince','700'); insert into employee (emp_id,first_name,last_name,salary) values ('8','fraz','javed','900');

Note: · Varchar (50) and INT is data type · UPDATE Command:

7۔UPDATE Commands میں ہم کسی بھی جگہ پر کوئی بھیValues لکھ سکتے ہیں۔ For Example: salary last_name first_name (emp_id ان میں کوئی دوسری Values کوSTORE کروانا ہو۔ update employee set last_name = 'mohsin' where emp_id = 7;

DELETE Command: اس Command میں کوئی بھیRecord Delete

delete from employee where emp_id in (7);

جب دوRecords کوDelete کرنا ہو تو

delete from employee where emp_id in (7,9);

۔MAX Salary Find کرنے کیلئے

۔Salary Find AVGکرنے کیلئے

۔MIN Salary Find کرنے کیلئے

۔SUM Salary Find کرنے کیلئے

۔Count RECORDS Find کرنے کیلئے

All CS403 files →
CS403 Database Management Systems All CS403 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.