CS403 SQL QURIES BY JUNAID.pdf
Verified academic study resource for CS403 (Database Management Systems) under the Computer Science at Virtual University of Pakistan. This PDF document (Verified Study Resource) covers Full Course Curriculum spanning approximately 280 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS403 – Database Management Systems
- Faculty
- Computer Science
- Format
- Type
- Study Resource
- Coverage
- Full Course Curriculum
Review this document alongside the official handouts and test your retention in the Interactive MCQs Studio.
What this file covers — CS403 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)
Frequently asked questions
Where can I download CS403 SQL QURIES BY JUNAID.pdf for free?
You can preview and download "CS403 SQL QURIES BY JUNAID.pdf" (CS403 PDF, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs403-sql-quries-by-junaid-pdf-2) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS403 file?
This document covers Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS403 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS403 solved past papers and handouts verified for 2026 exams?
Yes. All CS403 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
SQL QURIES
Junaid Malik
0304-1659294 junaidfaza08@gmail.com
1
BSCS 4th SEMESTER
AL-JUNAID INSTITUTE
DDL (DATA DIFINITION LANGUAGE)
میں ہمDDL
Create Table
ALTER Table
Drop Table
Truncate table
Rename
کرسکتے ہیں
لکھتے ہیں۔Code بنانے کیلیئے ہم یہTABLE۔1
create table employee
(
emp_id int;
first_name varchar (50),
last_name varchar (50),
salary int,
);
دیکھنا چاہتے ہیںLogical Structure کاTABLE۔اگر ہم2
describe employee؛
کرنا چاہتے ہیںadd کوTABLE ۔اگر ہم کسی3
Altar Command
alter table employee add contact int;
Select*from employee;
TRUNCATE Command
2
BSCS 4th SEMESTER
AL-JUNAID INSTITUTE
کرنا ہو تو ٹیبل میں سے۔Delete کوRecords ۔4
truncate table employee;
select*from employee;
DROP Command:
کرنا ہوDELETE کوTABLE ۔اگر ہم5
alter table employee drop column contact;
select*from employee;
DML (DATA MANIPULATION LANGUAGE)
لکھی ہوئی ہوتی ہے اسےDATA STRUCTURE سے ہم نے جوDML
Insertکر سکتے ہیں
Updateکر سکتے ہیں
Deleteکر سکتے ہیں
کرتے ہیںadd کو جبValues لکھتے ہیں۔Code کرنے کیلیئے ہم یہInsert ۔ ۔6
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');
Select*from employee;
Note:
Varchar (50) and INT is data type
UPDATE Command:
لکھ سکتےValues میں ہم کسی بھی جگہ پر کوئی بھیUPDATE Commands ۔7
ہیں۔
For Example:
3
BSCS 4th SEMESTER
AL-JUNAID INSTITUTE
STORE کوValues ( ان میں کوئی دوسریemp_id,first_name,last_name,salary)
کروانا ہو۔
update employee set last_name = 'mohsin' where emp_id = 7;
select*from employee;
DELETE Command:
کر سکتے ہیںRecord Delete میں کوئی بھیCommand ۔ اس8
delete from employee where emp_id in (7);
select*from employee;
کرنا ہو توDelete کوRecords جب دو
delete from employee where emp_id in (7,9);
select*from employee;
کرنے کیلئےMAX Salary Find ۔9
select max (salary) from employee;
کرنے کیلئےAVG Salary Find ۔10
select avg(salary) from employee;
کرنے کیلئےMIN Salary Find ۔11
Select min(salary) from employee;
کرنے کیلئےSUM Salary Find ۔12
select sum(salary) from employee;
. کرنے کیلئےCount RECORDS Find ۔13
select count (*) from employee;
4
BSCS 4th SEMESTER
AL-JUNAID INSTITUTE
کسSALARY کریں گے کہFIND میں ہم یہCommand ۔اس14
کی زیادہ ہے۔EMPLOYEE
select emp_id from employee where salary =
(select Max(salary) from employee);
کرتے ہیں۔Find کوMax Salary 2nd میں ہمCommand ۔اس15
(select max(salary) from employee where salary <>
(select max(salary) from employee));
TCL (TRANSECTION CONTROL)
Commit
Rollback
Save point
پر اٹھا نا ہو توBase کیRecords Condition ۔ ہمیں کوئی16
select*from employee where emp_id=7;
select*from employee where salary=900;
select*from employee where first_name='junaid';
select *from employee where last_name='shahid';
o And Operator
TRUE کوCONDITION کرتے ہیں ہماری دونو ںUSE اس لیئےAND Operation ۔ہم17
ہونا چاہئے۔
select*from employee where first_name='junaid' and last_name='prince';
select*from employee where first_name='fraz' and salary=900;
o OR Operator
5
BSCS 4th SEMESTER
AL-JUNAID INSTITUTE
کو درستCONDITION کرتے ہیں ہماری دونو ںUSE اس لیئےOR Operation ۔ہم18
کر لے ۔EXECUTE مان کر
select*from employee where emp_id= 9 Or salary=900;
o NOT operator
select*from employee where first_name='fraz' and salary !=900;
SPECIAL Operator
19. Find Range:
select*from employee where salary between 700 and 900;
20. Find String data type: