0% found this document useful (0 votes)
4 views16 pages

DBMS 4 Marks

The document discusses various levels of data abstraction in databases, including conceptual, physical, and logical levels. It also covers data manipulation commands such as DELETE and TRUNCATE, along with examples of SQL queries for managing student records. Additionally, it touches on the differences between relational and hierarchical models, as well as the creation of views in databases.

Uploaded by

pranavwagh97
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
4 views16 pages

DBMS 4 Marks

The document discusses various levels of data abstraction in databases, including conceptual, physical, and logical levels. It also covers data manipulation commands such as DELETE and TRUNCATE, along with examples of SQL queries for managing student records. Additionally, it touches on the differences between relational and hierarchical models, as well as the creation of views in databases.

Uploaded by

pranavwagh97
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 16
7 {Data Te Laee =Dota Bhetracrion 1g the “process — of hicli the _uncontea) Clota Prom Hye ene! sear — — rr I LSet J Dogan a] Toga] [Usp 4] se Mieust Vieus 2 Views 3 ; Conceptua) leve) i Physical level + + TWRemne Crane. mainly BA lenrelx Du Physica level C internal lever ) » || Concephia lee) Linge leae} 3) | Miew level - 2 Physical level2= =) Th 1 Cher lowest love) of Data Obs true bon » i wy) Tr cefines hun claire ere Atal | = jw) Data bese abstract iclecicle — the wich IGhowle) be Kept cur ohich —foearti Culler locatin] cleacribe how the lat NV) “They decicle Sf the clata has to tec bolhe ox_clistvibuke = Tt totely —ctpend On Fhe “Dea #1 _| Conceptual Level “Tn thia level clata cre ster aces (Segal Bayi eee entvie _datu-_ Teeth Use OQ logical lene) fire _obStvarbion ene] N 2) | Nieo level / enékenned Jewel t= I> Thi. Erre e me a AN OAL x Uger to interciot with the Dh Pox Fasienclly cccetoach- a The. Cacle Rule. ~D)/Rwe 0% “The. foundation . Rule t= 7 . - The cb must bein gelationalforsrn = (So thect 4 tem Can hendle the -dotiboe.— _ ae tA _oelationel Corpo bility Otuble ‘inthe form of acawa are) ‘firma 2) | Bute 2. Guartnted — accesa oule a - Ik ( C24 i “nome _t Primary key (fou) + Dut Coluron =—Fvenything in a+ dotnbrse’ pays be Ato-ste) ‘in tbl le by tuble Atiabute (Column) - Rule 3: Gyctematic bree ment af Vosue - it Gn ~ | wit have vend ait 5) Rue 4i- Active or dynanic I “relabione): model « Online Catto: \ re_ of 2 2 diagram I ‘Applicatica Sophisticated Database Naive user | Legents Omarammers Us | baring teodor es ot a Canaiyste) | | | | | |Reciication |‘ Boplicakion | use Administration rae Progen tools tood | | =e ! Pampilee & Loo quecigh ‘DDL inberpnete_ inkeer [opulent A Do _Campiler | TA sere . WL Naive user fend_user — un snphis ticoted user interact 3 __ application —pragrons 3] Application Programmers worite ond _cheveloe applica oo _eregra rn Users who boy using diff. toola - Nicated Users t 3] Sachi ‘ 2 site ser ieieact ult the oes ge 9 int em_of_quecy lanquage qpusey—langnng od logi ' OSers y Quieres Processor t= i] ++ “foterorete the request tecievecl frome Miss —and application Progra Soto ‘fastraction yj _ Query : 7 processor contain _¢ Dents. 7) oky corp? 3 DOL — ceseiler-tod linker - ery ‘ - d 4 3] Butnsrisation manager: . , | 2) ta tegrity mar |) FTrandaclan “3 mas co Ld] File ma ie |S] Rutree mndneser SI | Disk Stscage _ ar contaith the _Collowsing i Component - 1) Sara Giles sh torely the: dota | a d DifFerence. bekweed Relational ond Hierarchical redols Polaticac| rode! Wergrchical more Ta Actohase mndsl taucanoge.. TB struc? Hata_oep= data as tries grouped into! nized in a tree like mi Yelotions g Lusing parent child Teotonships - 9S] Perances data tn tables - |) Qrranges data in tree like g y | structure 3] ee Gnd. Beeting & A =I i ; | Wl Easicn tn access data. | A) Difficult to access daba S| Flexible | 8 Less Plexihle | UE - ag. Dl tse ny _ four application of Dari | 3\ Qilines-Foe resemuatinn and Shas Yofo eration 3h Aoniuoesty = For Students Course and. grant taffemati Peligueen eee: : weet generating — monthly bill - se g J d Uf se is not mo | | ! Hierarchical Mode. 2 populor i Tt 5 more popwoar thar i | Netasanke Moclol | Qi re ; | = doosnd sks cligat alt uses Client ‘server ‘erver anchifec ture, architeouhune 8 Fi im: ‘otGhin 2 Tic based) on tree like Hi) Thy based on tree like ni i on 1 1s SS a =a - a tease 2 type off city eh C SLr01 + 7 ‘hp et abitey AL. L « eo i Lilet iL An hy Le: ‘at _cloes nol fav 2 bay alist fh Gua Le called week jchtof Ltaibuite~ Lingle altichude. aonyuecite alt bute al putt valid ptiubile sl Mall altacloute é: sluel altadluite i] Ltaz ialude = Te pepaesend hus oflesty — Thal ie Sheep. at hiwtclocd 2: Lute paste — Fi Students phone 2020 atoms vale —— For tu :- Loll no af Li i ahi. Wel Drnulte welive. tacloute—!= i Lathitiler ue one _vedue fora syretifiee Ly Le calledl ) value lizlouste Fox en. 12 stuce have crite Lt, 20 20. nal. hh PEL. -Vhe_ ual, A attailudte repented Le LL MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION, Page No:$ ‘Autonomons) AISOMEC - 27001 -2013 Certified) DELETE TRUNCATE. It is DML(Data|Ti is a DDLC Data Manipulation —_ Language) | Definition Language) command command It is used to remove all or [It is used to remove all specific records of table records permanently. WHERE clause can be used to remove specific records. WHERE clause can be used as it removes all records. Syntax: DELETE FROM Table_name; OR DELETE FROM ‘Table_name WHERE Condition; ‘Syntax: TRUNCATE TABLE Table_name; Example: DELETE FROM Employee: WHERE Emp id= Example: TRUNCATE TABLE Employees, ROLLBACK command can be used to get deleted record, ROLLBACK command cannot be used 10 get records. New records can be added into a table as structure remains intact. Write and explain syntax for creating view with example, ‘A view contains rows and columns, just like a real ble. The fields ina | 2Mi view are fields from one or more real tables in the database. ‘View has two types: 1. Simple view: The fields in a view are fields from one table in the database. synta exp IM! ° 1:52 PM | 0.0KB/s & © < 8 “ul GD 58 DOC-20240826-WA.. [ @& : Descriptive example can be considered) “Aitemptany TWO of the followings TM ©] Draw an E-R diagram of library management system considering | issue and return, ‘ine calculation facility. Consider appropriate entities. Page No:t? /2t MAHARASHTRA STATE BOARD OF TECHNICAL. EDUCATION aso Scere) Kew Cant cites: 2M, correct, symbols: 2M, Correct relationships 2M B_| Consider the table om Student (name, marks, dept, age, place, phone, birthdate), Write SQL query for following. i)To lis students having place as ‘Pune’ or “Salguon” {i/To list students having sume departameat(dept) as that of “Feuchana” fii) To change marks of ‘Rahul? from 81 t0 96. iv) To list student name and marks from ‘Computer’ dept. ¥) Tolist student name who have marks less than 40. siTo fist students who are not from ‘Mumbai: “Raw | select name fom Stslent where place= “Pune” or place=Talgaon"; (OR; select name from Stuxdents where place in ‘Pune’. Jalgaon’); Ebedlore emane fists Gierhnae sittene dave-tebiiice dint Some enelines where w= the Partitioning, ULAP and Data Mining options create table student Croll_no nunber(6) primary key, name char (19), marks nunber(6) not null, city char(19)) > able created. saL> alter ramie student 2 add DOB date; fable altered. UL> alter table student 2 modify nane char(20); able altered. S0L> alter table student 2 rename student to stud; ehane student ta stud AROR at Line 2 DRA~14155: missing PARTITION or SUBPARTITION keyword table student 2 renane to stud; Hable altered SUL> desc stud Mane nui? ROLL No NOT HULL NUMBERCA) Hane cHancaa) mais: HOT HULL NUNIBER(®) civ cHARG 19) bon DATE a> | acie Database 19q Enterprise Edition Release 10.2.0.9.9 - Production ith Lelnaty hey ceasbianl Aelia fay ie apheis eo scolme’ Hak aeiitpualyy ialy x ee ee 7 |. Aya, tay ke taut pontein uaigua values a \ at fave pul. valet: No peut solar Sed s Lo Lt alitoclyp axa en

You might also like