SlideShare uma empresa Scribd logo
1 de 3
‫תרגול‬‫פרק‬7–DML
1.‫צרו‬‫את‬‫טבלת‬Students‫ע‬"‫י‬‫העתקת‬‫הקוד‬‫הבא‬:
CREATE TABLE students
(studnet_id number(5) PRIMARY KEY,
student_name varchar2(25),
student_class varchar2(25) ,
student_birthday date ,
student_city varchar2(25) DEFAULT 'Tel Aviv')
2.‫להלן‬‫נתונים‬‫בהם‬‫יש‬‫להשתמש‬‫בתרגילים‬‫הבאים‬:
Student_idStudent_nameStudent_classStudent_birthdayStudent_city
1MosheA01-JAN-1994Tel Aviv
2YossiA01-FEB-1994Tel Aviv
3GilBNULLTel Aviv
4YuvalB09-DEC-1995Ramat Gan
5ShmuelBNULLRamat Gan
6AviANULLTel Aviv
7SnirA12-NOV-1995Tel Aviv
8AmirC12-SEP-1998Tel Aviv
9RoeeC17-APR-1994Ramat Gan
3.‫הכניסו‬‫את‬3‫התלמידים‬‫הראשונים‬‫ע‬"‫י‬Implicit Insert,‫במקום‬‫לרשום‬‫את‬‫שם‬‫העיר‬‫השתמשו‬‫ב‬-
DEFAULT.
4.‫הכניסו‬‫את‬3‫התלמידים‬‫הבאים‬‫ע‬"‫י‬Explicit Insert.
5.‫הכניסו‬‫את‬3‫התלמידים‬‫האחרונים‬‫ע‬"‫י‬‫משתני‬‫החלפה‬)Explicit‫או‬Implicit–‫לבחירתכם‬.(
6.‫עדכנו‬‫את‬‫תאריך‬‫לידתו‬‫של‬‫תלמיד‬‫מספר‬5‫ל‬SYSDATE.
7.‫עדכנו‬‫את‬‫עירו‬‫של‬‫תלמיד‬‫מספר‬7‫ל‬-Holon.
8.‫מחקו‬‫את‬‫תלמידים‬2,4,6.
9.‫שמרו‬‫את‬‫הנתונים‬‫באופן‬‫סופי‬‫ב‬-Data Base.
‫פתרונות‬‫תרגול‬‫פרק‬7–DML
CREATE TABLE students
(student_id number(5) PRIMARY KEY,
student_name varchar2(25),
student_class varchar2(25) ,
student_birthday date ,
student_city varchar2(25) DEFAULT 'Tel Aviv')
-------------------
3.
INSERT INTO students
VALUES (1 , 'Moshe' , 'A' , '01-JAN-1994' , DEFAULT)
INSERT INTO students
VALUES (2 , 'Yossi' , 'A' , '01-FEB-1994' ,DEFAULT)
INSERT INTO students
VALUES (3 , 'Gil' ,'B' , NULL , DEFAULT)
4.
INSERT INTO students (student_id , student_name ,
student_class , student_birthday , student_city)
VALUES(4 , 'Yuval' , 'B' , '09-DEC-1995', 'Ramat Gan')
INSERT INTO students (student_id , student_name ,
student_class , student_birthday , student_city)
VALUES(5 , 'Shmuel' , 'B' , NULL , 'Ramat Gan')
INSERT INTO students (student_id , student_name , student_class )
VALUES (6 , 'Avi' , 'A')
5.
INSERT INTO students
VALUES (&s_id , '&s_name' , '&s_class' , '&s_birthday' , '&student_city')
6.
UPDATE students
SET student_birthday = SYSDATE
WHERE student_id = 5
7.
UPDATE students
SET student_city = 'Holon'
WHERE student_id = 7
8.
DELETE FROM students
WHERE student_id IN (2,4,6)
9.
COMMIT
‫ע‬ ‫נכתב‬"‫קדם‬ ‫רם‬ ‫י‬
ram.kdm@gmail.com

Mais conteúdo relacionado

Destaque

Destaque (15)

Lesson 3 backup
Lesson 3   backupLesson 3   backup
Lesson 3 backup
 
SSRS Gauges
SSRS GaugesSSRS Gauges
SSRS Gauges
 
SSAS Attributes
SSAS AttributesSSAS Attributes
SSAS Attributes
 
Control Flow Using SSIS
Control Flow Using SSISControl Flow Using SSIS
Control Flow Using SSIS
 
SSRS Matrix
SSRS MatrixSSRS Matrix
SSRS Matrix
 
Data mining In SSAS
Data mining In SSASData mining In SSAS
Data mining In SSAS
 
Data Warehouse Design Considerations
Data Warehouse Design ConsiderationsData Warehouse Design Considerations
Data Warehouse Design Considerations
 
SSIS Basic Data Flow
SSIS Basic Data FlowSSIS Basic Data Flow
SSIS Basic Data Flow
 
MSSQL Server - Automation
MSSQL Server - AutomationMSSQL Server - Automation
MSSQL Server - Automation
 
2R Solution Limited
2R Solution Limited2R Solution Limited
2R Solution Limited
 
3 indexes
3 indexes3 indexes
3 indexes
 
The Challenge of Bringing FEZ to PlayStation Platforms
The Challenge of Bringing FEZ to PlayStation PlatformsThe Challenge of Bringing FEZ to PlayStation Platforms
The Challenge of Bringing FEZ to PlayStation Platforms
 
Bridging the Divide - A Social Media Workshop
Bridging the Divide - A Social Media Workshop Bridging the Divide - A Social Media Workshop
Bridging the Divide - A Social Media Workshop
 
Lesson 5 security
Lesson 5   securityLesson 5   security
Lesson 5 security
 
Exploring Oracle Database Architecture (Hebrew)
Exploring Oracle Database Architecture (Hebrew)Exploring Oracle Database Architecture (Hebrew)
Exploring Oracle Database Architecture (Hebrew)
 

Mais de Ram Kedem (14)

Impala use case @ edge
Impala use case @ edgeImpala use case @ edge
Impala use case @ edge
 
Advanced SQL Webinar
Advanced SQL WebinarAdvanced SQL Webinar
Advanced SQL Webinar
 
Managing oracle Database Instance
Managing oracle Database InstanceManaging oracle Database Instance
Managing oracle Database Instance
 
SQL Injections - Oracle
SQL Injections - OracleSQL Injections - Oracle
SQL Injections - Oracle
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
Introduction to Databases
Introduction to DatabasesIntroduction to Databases
Introduction to Databases
 
Deploy SSRS Project - SQL Server 2014
Deploy SSRS Project - SQL Server 2014Deploy SSRS Project - SQL Server 2014
Deploy SSRS Project - SQL Server 2014
 
SSAS Cubes & Hierarchies
SSAS Cubes & HierarchiesSSAS Cubes & Hierarchies
SSAS Cubes & Hierarchies
 
SSRS Conditional Formatting
SSRS Conditional FormattingSSRS Conditional Formatting
SSRS Conditional Formatting
 
SSRS Calculated Fields
SSRS Calculated FieldsSSRS Calculated Fields
SSRS Calculated Fields
 
SSRS Groups
SSRS GroupsSSRS Groups
SSRS Groups
 
Deploy SSIS
Deploy SSISDeploy SSIS
Deploy SSIS
 
SSIS Data Flow Tasks
SSIS Data Flow Tasks SSIS Data Flow Tasks
SSIS Data Flow Tasks
 
Data Warehouse Basics
Data Warehouse BasicsData Warehouse Basics
Data Warehouse Basics
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

DML Practice (Hebrew)

  • 1. ‫תרגול‬‫פרק‬7–DML 1.‫צרו‬‫את‬‫טבלת‬Students‫ע‬"‫י‬‫העתקת‬‫הקוד‬‫הבא‬: CREATE TABLE students (studnet_id number(5) PRIMARY KEY, student_name varchar2(25), student_class varchar2(25) , student_birthday date , student_city varchar2(25) DEFAULT 'Tel Aviv') 2.‫להלן‬‫נתונים‬‫בהם‬‫יש‬‫להשתמש‬‫בתרגילים‬‫הבאים‬: Student_idStudent_nameStudent_classStudent_birthdayStudent_city 1MosheA01-JAN-1994Tel Aviv 2YossiA01-FEB-1994Tel Aviv 3GilBNULLTel Aviv 4YuvalB09-DEC-1995Ramat Gan 5ShmuelBNULLRamat Gan 6AviANULLTel Aviv 7SnirA12-NOV-1995Tel Aviv 8AmirC12-SEP-1998Tel Aviv 9RoeeC17-APR-1994Ramat Gan 3.‫הכניסו‬‫את‬3‫התלמידים‬‫הראשונים‬‫ע‬"‫י‬Implicit Insert,‫במקום‬‫לרשום‬‫את‬‫שם‬‫העיר‬‫השתמשו‬‫ב‬- DEFAULT. 4.‫הכניסו‬‫את‬3‫התלמידים‬‫הבאים‬‫ע‬"‫י‬Explicit Insert. 5.‫הכניסו‬‫את‬3‫התלמידים‬‫האחרונים‬‫ע‬"‫י‬‫משתני‬‫החלפה‬)Explicit‫או‬Implicit–‫לבחירתכם‬.( 6.‫עדכנו‬‫את‬‫תאריך‬‫לידתו‬‫של‬‫תלמיד‬‫מספר‬5‫ל‬SYSDATE. 7.‫עדכנו‬‫את‬‫עירו‬‫של‬‫תלמיד‬‫מספר‬7‫ל‬-Holon. 8.‫מחקו‬‫את‬‫תלמידים‬2,4,6. 9.‫שמרו‬‫את‬‫הנתונים‬‫באופן‬‫סופי‬‫ב‬-Data Base.
  • 2. ‫פתרונות‬‫תרגול‬‫פרק‬7–DML CREATE TABLE students (student_id number(5) PRIMARY KEY, student_name varchar2(25), student_class varchar2(25) , student_birthday date , student_city varchar2(25) DEFAULT 'Tel Aviv') ------------------- 3. INSERT INTO students VALUES (1 , 'Moshe' , 'A' , '01-JAN-1994' , DEFAULT) INSERT INTO students VALUES (2 , 'Yossi' , 'A' , '01-FEB-1994' ,DEFAULT) INSERT INTO students VALUES (3 , 'Gil' ,'B' , NULL , DEFAULT) 4. INSERT INTO students (student_id , student_name , student_class , student_birthday , student_city) VALUES(4 , 'Yuval' , 'B' , '09-DEC-1995', 'Ramat Gan') INSERT INTO students (student_id , student_name , student_class , student_birthday , student_city) VALUES(5 , 'Shmuel' , 'B' , NULL , 'Ramat Gan') INSERT INTO students (student_id , student_name , student_class ) VALUES (6 , 'Avi' , 'A') 5. INSERT INTO students VALUES (&s_id , '&s_name' , '&s_class' , '&s_birthday' , '&student_city')
  • 3. 6. UPDATE students SET student_birthday = SYSDATE WHERE student_id = 5 7. UPDATE students SET student_city = 'Holon' WHERE student_id = 7 8. DELETE FROM students WHERE student_id IN (2,4,6) 9. COMMIT ‫ע‬ ‫נכתב‬"‫קדם‬ ‫רם‬ ‫י‬ ram.kdm@gmail.com