N.G.Acharya & D.K.Marathe college Chembur-E, Mumbai-71

Slides:



Advertisements
Similar presentations
Dr. Alexandra I. Cristea CS 252: Fundamentals of Relational Databases: SQL3.
Advertisements

Note: A bolded number or letter refers to an entire lesson or appendix. A Adding Data Through a View ADD_MONTHS Function 03-22, 03-23, 03-46,
SQL Rohit Khokher.
 Database is SQL1.mdb ◦ import using MySQL Migration Toolkit 
Introduction To SQL Lynnwood Brown President System Managers LLC Copyright System Managers LLC 2003 all rights reserved.
Copyright © by Royal Institute of Information Technology Introduction To Structured Query Language (SQL) 1.
Introduction to Structured Query Language (SQL)
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
A Guide to SQL, Seventh Edition. Objectives Create a new table from an existing table Change data using the UPDATE command Add new data using the INSERT.
Introduction to Structured Query Language (SQL)
Introduction to Oracle9i: SQL1 Selected Single-Row Functions.
Fundamentals, Design, and Implementation, 9/e Chapter 6 Introduction to Structured Query Language (SQL)
Structured Query Language Chapter Three (Excerpts) DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Introduction to Structured Query Language (SQL)
Structured Query Language Chapter Three DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Structured Query Language Chapter Three DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Concepts of Database Management Sixth Edition
A Guide to SQL, Seventh Edition. Objectives Retrieve data from a database using SQL commands Use compound conditions Use computed columns Use the SQL.
Microsoft Access 2010 Chapter 7 Using SQL.
SQL Operations Aggregate Functions Having Clause Database Access Layer A2 Teacher Up skilling LECTURE 5.
Introduction to SQL J.-S. Chou Assistant Professor.
Chapter 3 Single-Table Queries
Structured Query Language Chapter Three DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Microsoft Access 2010 Chapter 7 Using SQL. Change the font or font size for SQL queries Create SQL queries Include fields in SQL queries Include simple.
Chapter 10 Selected Single-Row Functions Oracle 10g: SQL.
Chapter 5 Selected Single-Row Functions. Chapter Objectives  Use the UPPER, LOWER, and INITCAP functions to change the case of field values and character.
SQL: Data Manipulation Presented by Mary Choi For CS157B Dr. Sin Min Lee.
1 Single Table Queries. 2 Objectives  SELECT, WHERE  AND / OR / NOT conditions  Computed columns  LIKE, IN, BETWEEN operators  ORDER BY, GROUP BY,
Using Special Operators (LIKE and IN)
Concepts of Database Management Seventh Edition
DATABASE TRANSACTION. Transaction It is a logical unit of work that must succeed or fail in its entirety. A transaction is an atomic operation which may.
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
Nitin Singh/AAO RTI ALLAHABAD 1 SQL Nitin Singh/AAO RTI ALLAHABAD 2 OBJECTIVES §What is SQL? §Types of SQL commands and their function §Query §Index.
Oracle 11g: SQL Chapter 10 Selected Single-Row Functions.
CS146 References: ORACLE 9i PROGRAMMING A Primer Rajshekhar Sunderraman
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
Chapter 3 Selected Single-Row Functions and Advanced DML & DDL.
Database Management COP4540, SCS, FIU Structured Query Language (Chapter 8)
Advanced SELECT Queries CS 146. Review: Retrieving Data From a Single Table Syntax: Limitation: Retrieves "raw" data Note the default formats… SELECT.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 (Part II) INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor.
Lecture 8 – SQL Joins – assemble new views from existing tables INNER JOIN’s The Cartesian Product Theta Joins and Equi-joins Self Joins Natural Join.
Concepts of Database Management Seventh Edition Chapter 3 The Relational Model 2: SQL.
SqlExam1Review.ppt EXAM - 1. SQL stands for -- Structured Query Language Putting a manual database on a computer ensures? Data is more current Data is.
© 2002 by Prentice Hall 1 Structured Query Language David M. Kroenke Database Concepts 1e Chapter 3 3.
A Guide to SQL, Eighth Edition Chapter Six Updating Data.
A Guide to SQL, Eighth Edition Chapter Four Single-Table Queries.
Oracle & SQL. Oracle Data Types Character Data Types: Char(2) Varchar (20) Clob: large character string as long as 4GB Bolb and bfile: large amount of.
1 SQL II CIS*2450 Advanced Programming Concepts. 2 Data Types INTEGER –numbers without a decimal point –range is to SMALLINT –like.
A Guide to MySQL 6. 2 Objectives Create a new table from an existing table Change data using the UPDATE command Add new data using the INSERT command.
1 Chapter 3 Single Table Queries. 2 Simple Queries Query - a question represented in a way that the DBMS can understand Basic format SELECT-FROM Optional.
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
SQL: Structured Query Language It enables to create and operate on relational databases, which are sets of related information stored in tables. It is.
1 Introduction to Database Systems, CS420 SQL JOIN, Group-by and Sub-query Clauses.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
Open Source Server Side Scripting MySQL Functions
MYSQL DEFINITION MySQL, pronounced either "My S-Q-L" or "My Sequel," is an open source relational database management system. It is based on the structure.
Chapter 10 Selected Single-Row Functions Oracle 10g: SQL
PL/SQL LANGUAGE MULITPLE CHOICE QUESTION SET-1
Chapter # 7 Introduction to Structured Query Language (SQL) Part II.
SQL – Entire Select.
Chapter 4 Summary Query.
Access: SQL Participation Project
SQL Aggregation.
Index Note: A bolded number or letter refers to an entire lesson or appendix. A Adding Data Through a View ADD_MONTHS Function 03-22, 03-23,
Contents Preface I Introduction Lesson Objectives I-2
Query Functions.
Database Management System
Trainer: Bach Ngoc Toan– TEDU Website:
Introduction to SQL Server and the Structure Query Language
Presentation transcript:

N.G.Acharya & D.K.Marathe college Chembur-E, Mumbai-71 K.P.B. HINDUJA COLLEGE OF COMMERCE Workshop in Computer Programming : S.Y.B.Com. Computer Systems and Applications: T.Y.B.Com. MySQL : Prof. Pradeep Kore N.G.Acharya & D.K.Marathe college Chembur-E, Mumbai-71

MySQL Set of My-SQL functions was decided in the previous workshop(s) should continue ! String functions:- 1. CONCAT(str1,str2..) 2. LOWER(str.) , UPPER(str.) 3. LENGTH(str.) 4. LTRIM(str.) , RTRIM(str.) ,TRIM(str.) 5. LEFT(str., len) , RIGHT(str., len) , MID(str, pos, len) and SUBSTRING()

MySQL Date functions :- Numeric functions :- 1. NOW() , TIME(expr) and CURDATE() 2. DAY(date) , MONTH(date) and YEAR(date) 3. DAYNAME(date) and MONTHNAME(date) 4. DATE(expr) Numeric functions :- 1. ABS(x) 2. EXP() 3. POW() 4. MOD() 5. ROUND() 6. SQRT()

MySQL Aggregate or Summary or Group functions:- COUNT() : For counting number of the rows of the specified column. SUM() : For summing of the non null values in the specified column. AVG() : For averaging of the non null values in the specified column. MIN() : For finding minimum of the non null values in the specified column. MAX() :For finding maximum of the non null values in the specified column.

MySQL In the previous years patterns:- Marking scheme of all five units in annual exam. paper. Five units of the syllabus (80 marks paper): (=16x5) Five units of the same syllabus (annual pattern) 60 marks : ( =12x5) Now in the current semester based system of 2013-14 Five units of Sem-V (60 marks)+ Sem-VI (60 marks) Total 120 marks : (=24x5) with out options. With 50 % options 180 marks : (=36x5)

MySQL Total marks for MySQL is 10+10+4 =24 and with options 15+15+6=36 Marking scheme of MySQL in Question Paper:- Q 2. A) Attempt any two sub-questions from a, b, c in MySQL a) MySQL (5) b) MySQL (5) c) MySQL (5) Q 3. A) Attempt any two sub-questions from a, b, c in MySQL Q 4. B) Attempt any four sub-questions from d, e, f, g, h, i in MySQL (Multiple Choice) (4) d) MySQL e) MySQL f) MySQL g) MySQL h) MySQL i) MySQL Total marks for MySQL is 10+10+4 =24 and with options 15+15+6=36

MySQL Five marks six questions can be 1. Create table question :- (This question must be carefully designed so that no variation in marking schemes at the paper assessment. ) 2. Simple queries, sorting queries, queries with condition(s), queries with calculating results with new heading(s) using existing columns. 3. Group/ Summary Queries using Group by clause (& using group functions : COUNT(), SUM(), AVG(), MAX() & MIN() 4. Multi table queries: Simple joins (INNER JOIN) only 5. Nested queries ( Only up to two levels) : Subqueries.

MySQL 6. i) Changing table structure ( Alter table…add/drop/change/ modify/rename …etc ) ii) Adding / deleting /updating rows/ row contains in the existing table. iii) Renaming /Removing databases, tables. Displaying list of existing databases, tables in a existing database. iv) Simple transaction:- START, COMMIT & ROLLBACK. v) Queries using MySQL functions.

MySQL Discussion with reference to MySQL :- To define exact set of MySQL functions. Queries using limit clause can be included as scope of syllabus. To define exact marking scheme of multi-table queries. (Since in some question papers one query 5 marks or in some papers its carry 2 marks.) In multi-table queries Self Join discuss or not?