SlideShare a Scribd company logo
1 of 8
Download to read offline
SQL COMMAND BY JP KHUNTIA
1. Create the database loans.
2. Use database loans.
1. Create table loan_accounts and insert tuples in it.
Display details of all the loans.
Display the accno, cust_name and loan_amount of all the loans.
Display details of all the loans with less than 40 installments
Display the accno and loan_amount of all the loans started before 01-04-2009.
Display the int_rate of all the loans started after 01-04-2009.
Display the details of all the loans whose rate of interest is null.
Display the amount of various loans from the table loan_accounts. A loan amount should
appear only once.
Display the cust_name and loan_amount for all the loans which do not have number of
installments 36.
Display the cust_name and loan_amount for all the loans for which the loan amount is less than
500000 or int_rate is more than 12.
Display the details of all the loans whose rate of interest is in the range 11% to 12%.
Display the cust_name and loan_amount for all the loans for which the number of installments
are 24, 36, or 48.
Display the details of all the loans whose loan_amount is in the range 400000 to 500000.
Display the accno, cust_name, loan_amount for all the loans for which the cust_name ends with
“khuntia”.
Display the accno, cust_name, and loan_amount for all the loans for which the cust_name contains ‘i’
as the second last character.
Display the details of all the loans in the ascending order of their loan_amount.
Display the details of all the loans in the descending order of their start_date.
Put the interest rate 11.50% for all the loans for which interest rate is null.
For each loan replace interest with (loan_amount * int_rate*installments)/12*100.
Delete the records of all the loans of “j.khuntia”.
Add another category of type char(1) in the loan_accounts table.
Select cust_name , length(cust_name), lcase(cust_name),
Ucase(cust_name) from loan_accounts where int_rate <11.00;
Select dayname(start_date) from loan_accounts;
Select round(int_rate*110/100,2) from loan_accounts where int_rate >10;
Select pow(4,3), pow(3,4);
Select round(543.5694,2) , round(543.5694), round(543.5634,-1);
Select truncate(543.5694,2), truncate(543.5694,-1);
Select concat(“jyoti”, “ prakash”) “full name”;
Select year(curdate()), month(curdate()), day(curdate());
Select mid(“information”,3,4),substr(“technology”,3);

More Related Content

What's hot

APidays Paris 2019 - API-First vs Data Driven Architecture by Jerome Louvel, ...
APidays Paris 2019 - API-First vs Data Driven Architecture by Jerome Louvel, ...APidays Paris 2019 - API-First vs Data Driven Architecture by Jerome Louvel, ...
APidays Paris 2019 - API-First vs Data Driven Architecture by Jerome Louvel, ...apidays
 
Microsoft OneDrive For Business
Microsoft OneDrive For BusinessMicrosoft OneDrive For Business
Microsoft OneDrive For BusinessDavid J Rosenthal
 
IT Consulting Services
IT Consulting ServicesIT Consulting Services
IT Consulting Serviceslalitpandey
 
OneDrive & SharePoint Better Together
OneDrive & SharePoint Better TogetherOneDrive & SharePoint Better Together
OneDrive & SharePoint Better TogetherDrew Madelung
 
Introduction to Microsoft 365 (Office 365).pptx
Introduction to Microsoft 365 (Office 365).pptxIntroduction to Microsoft 365 (Office 365).pptx
Introduction to Microsoft 365 (Office 365).pptxJohnVince8
 
Wrench Digital Project Management Office | Digital PMO Software Overview
Wrench Digital Project Management Office | Digital PMO Software OverviewWrench Digital Project Management Office | Digital PMO Software Overview
Wrench Digital Project Management Office | Digital PMO Software OverviewWrench Solutions (P) Ltd
 
Overview of API Management Architectures
Overview of API Management ArchitecturesOverview of API Management Architectures
Overview of API Management ArchitecturesNordic APIs
 
Real Time Location Systems (RTLS)
Real Time Location Systems (RTLS)Real Time Location Systems (RTLS)
Real Time Location Systems (RTLS)Jeffrey Dungen
 
What is Office 365 | Benifits of Office 365 | Learn Office 365
What is Office 365 | Benifits of Office 365 | Learn Office 365What is Office 365 | Benifits of Office 365 | Learn Office 365
What is Office 365 | Benifits of Office 365 | Learn Office 365Gloire Tech
 
API Strategy Presentation
API Strategy PresentationAPI Strategy Presentation
API Strategy PresentationLawrence Coburn
 
Mindfields x Workato - The Role of API-based Automation in Enhancing Employee...
Mindfields x Workato - The Role of API-based Automation in Enhancing Employee...Mindfields x Workato - The Role of API-based Automation in Enhancing Employee...
Mindfields x Workato - The Role of API-based Automation in Enhancing Employee...Mindfields Global
 
Orchestration and provisioning architecture for effective service management
Orchestration and provisioning architecture for effective service managementOrchestration and provisioning architecture for effective service management
Orchestration and provisioning architecture for effective service managementAlan McSweeney
 
Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Open API and API Management - Introduction and Comparison of Products: TIBCO ...Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Open API and API Management - Introduction and Comparison of Products: TIBCO ...Kai Wähner
 
APIs as a Product Strategy
APIs as a Product StrategyAPIs as a Product Strategy
APIs as a Product StrategyRavi Kumar
 
Airbus Goes Serverless with AWS to Improve Fleet Operations (MFG315) - AWS re...
Airbus Goes Serverless with AWS to Improve Fleet Operations (MFG315) - AWS re...Airbus Goes Serverless with AWS to Improve Fleet Operations (MFG315) - AWS re...
Airbus Goes Serverless with AWS to Improve Fleet Operations (MFG315) - AWS re...Amazon Web Services
 
Introducing Microsoft 365 for Business
Introducing Microsoft 365 for BusinessIntroducing Microsoft 365 for Business
Introducing Microsoft 365 for BusinessDavid J Rosenthal
 
Ecommerce Website Designing Service Proposal PowerPoint Presentation Slides
Ecommerce Website Designing Service Proposal PowerPoint Presentation SlidesEcommerce Website Designing Service Proposal PowerPoint Presentation Slides
Ecommerce Website Designing Service Proposal PowerPoint Presentation SlidesSlideTeam
 
Build HA Asterisk on Microsoft Azure using DRBD/Heartbeat
Build HA Asterisk on Microsoft Azure using DRBD/HeartbeatBuild HA Asterisk on Microsoft Azure using DRBD/Heartbeat
Build HA Asterisk on Microsoft Azure using DRBD/HeartbeatSanjay Willie
 

What's hot (20)

APidays Paris 2019 - API-First vs Data Driven Architecture by Jerome Louvel, ...
APidays Paris 2019 - API-First vs Data Driven Architecture by Jerome Louvel, ...APidays Paris 2019 - API-First vs Data Driven Architecture by Jerome Louvel, ...
APidays Paris 2019 - API-First vs Data Driven Architecture by Jerome Louvel, ...
 
Microsoft OneDrive For Business
Microsoft OneDrive For BusinessMicrosoft OneDrive For Business
Microsoft OneDrive For Business
 
How Secure Are Your APIs?
How Secure Are Your APIs?How Secure Are Your APIs?
How Secure Are Your APIs?
 
IT Consulting Services
IT Consulting ServicesIT Consulting Services
IT Consulting Services
 
OneDrive & SharePoint Better Together
OneDrive & SharePoint Better TogetherOneDrive & SharePoint Better Together
OneDrive & SharePoint Better Together
 
Introduction to Microsoft 365 (Office 365).pptx
Introduction to Microsoft 365 (Office 365).pptxIntroduction to Microsoft 365 (Office 365).pptx
Introduction to Microsoft 365 (Office 365).pptx
 
Wrench Digital Project Management Office | Digital PMO Software Overview
Wrench Digital Project Management Office | Digital PMO Software OverviewWrench Digital Project Management Office | Digital PMO Software Overview
Wrench Digital Project Management Office | Digital PMO Software Overview
 
Overview of API Management Architectures
Overview of API Management ArchitecturesOverview of API Management Architectures
Overview of API Management Architectures
 
Real Time Location Systems (RTLS)
Real Time Location Systems (RTLS)Real Time Location Systems (RTLS)
Real Time Location Systems (RTLS)
 
What is Office 365 | Benifits of Office 365 | Learn Office 365
What is Office 365 | Benifits of Office 365 | Learn Office 365What is Office 365 | Benifits of Office 365 | Learn Office 365
What is Office 365 | Benifits of Office 365 | Learn Office 365
 
API Strategy Presentation
API Strategy PresentationAPI Strategy Presentation
API Strategy Presentation
 
Mindfields x Workato - The Role of API-based Automation in Enhancing Employee...
Mindfields x Workato - The Role of API-based Automation in Enhancing Employee...Mindfields x Workato - The Role of API-based Automation in Enhancing Employee...
Mindfields x Workato - The Role of API-based Automation in Enhancing Employee...
 
Orchestration and provisioning architecture for effective service management
Orchestration and provisioning architecture for effective service managementOrchestration and provisioning architecture for effective service management
Orchestration and provisioning architecture for effective service management
 
Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Open API and API Management - Introduction and Comparison of Products: TIBCO ...Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Open API and API Management - Introduction and Comparison of Products: TIBCO ...
 
IBM Internet of Things Offerings
IBM Internet of Things OfferingsIBM Internet of Things Offerings
IBM Internet of Things Offerings
 
APIs as a Product Strategy
APIs as a Product StrategyAPIs as a Product Strategy
APIs as a Product Strategy
 
Airbus Goes Serverless with AWS to Improve Fleet Operations (MFG315) - AWS re...
Airbus Goes Serverless with AWS to Improve Fleet Operations (MFG315) - AWS re...Airbus Goes Serverless with AWS to Improve Fleet Operations (MFG315) - AWS re...
Airbus Goes Serverless with AWS to Improve Fleet Operations (MFG315) - AWS re...
 
Introducing Microsoft 365 for Business
Introducing Microsoft 365 for BusinessIntroducing Microsoft 365 for Business
Introducing Microsoft 365 for Business
 
Ecommerce Website Designing Service Proposal PowerPoint Presentation Slides
Ecommerce Website Designing Service Proposal PowerPoint Presentation SlidesEcommerce Website Designing Service Proposal PowerPoint Presentation Slides
Ecommerce Website Designing Service Proposal PowerPoint Presentation Slides
 
Build HA Asterisk on Microsoft Azure using DRBD/Heartbeat
Build HA Asterisk on Microsoft Azure using DRBD/HeartbeatBuild HA Asterisk on Microsoft Azure using DRBD/Heartbeat
Build HA Asterisk on Microsoft Azure using DRBD/Heartbeat
 

Similar to Mysqlbyjp

12th information practices mysql practice questions
12th information practices mysql practice questions12th information practices mysql practice questions
12th information practices mysql practice questionsHarish Gyanani
 
06 impq introduction_to_mysql
06 impq introduction_to_mysql06 impq introduction_to_mysql
06 impq introduction_to_mysqlShahil Mk
 
Case Problem: Loan.xisx
Case Problem: Loan.xisxCase Problem: Loan.xisx
Case Problem: Loan.xisxViscKand
 
SQL practice questions set - 2
SQL practice questions set - 2SQL practice questions set - 2
SQL practice questions set - 2Mohd Tousif
 
MortgageCalculator.javaMortgageCalculator.java  The mortga.docx
MortgageCalculator.javaMortgageCalculator.java  The mortga.docxMortgageCalculator.javaMortgageCalculator.java  The mortga.docx
MortgageCalculator.javaMortgageCalculator.java  The mortga.docxgilpinleeanna
 
CSCE 1030 Project 2 Due 1159 PM on Sunday, March 28, 2021
CSCE 1030 Project 2 Due 1159 PM on Sunday, March 28, 2021CSCE 1030 Project 2 Due 1159 PM on Sunday, March 28, 2021
CSCE 1030 Project 2 Due 1159 PM on Sunday, March 28, 2021MargenePurnell14
 
As with all projects in this course, your program’s output wil.docx
As with all projects in this course, your program’s output wil.docxAs with all projects in this course, your program’s output wil.docx
As with all projects in this course, your program’s output wil.docxrandymartin91030
 
CS225 Fundamentals of Computer ScienceCourse SyllabusFall 2013Dr.docx
CS225 Fundamentals of Computer ScienceCourse SyllabusFall 2013Dr.docxCS225 Fundamentals of Computer ScienceCourse SyllabusFall 2013Dr.docx
CS225 Fundamentals of Computer ScienceCourse SyllabusFall 2013Dr.docxmydrynan
 
Ch05 P24 Build a Model Spring 1, 201372212Chapter 5. Ch 05 P24 B.docx
Ch05 P24 Build a Model Spring 1, 201372212Chapter 5. Ch 05 P24 B.docxCh05 P24 Build a Model Spring 1, 201372212Chapter 5. Ch 05 P24 B.docx
Ch05 P24 Build a Model Spring 1, 201372212Chapter 5. Ch 05 P24 B.docxtidwellveronique
 
Modernization of Northwood Housing Society using Salesforce CRM
Modernization of Northwood Housing Society using Salesforce CRMModernization of Northwood Housing Society using Salesforce CRM
Modernization of Northwood Housing Society using Salesforce CRMKaushik Rajan
 
Modernization of northwood housing society using salesforce crm
Modernization of northwood housing society using salesforce crmModernization of northwood housing society using salesforce crm
Modernization of northwood housing society using salesforce crmSindhujanDhayalan
 
You can use a calculator to do numerical calculations. No graphing.docx
You can use a calculator to do numerical calculations. No graphing.docxYou can use a calculator to do numerical calculations. No graphing.docx
You can use a calculator to do numerical calculations. No graphing.docxjeffevans62972
 
Bus 640 week 1 assignment economics of risk and uncertainty applied problems ...
Bus 640 week 1 assignment economics of risk and uncertainty applied problems ...Bus 640 week 1 assignment economics of risk and uncertainty applied problems ...
Bus 640 week 1 assignment economics of risk and uncertainty applied problems ...ENTIRE COURSES FINAL EXAM
 
Bus 640 week 2 assignment consumer demand analysis and estimation applied pro...
Bus 640 week 2 assignment consumer demand analysis and estimation applied pro...Bus 640 week 2 assignment consumer demand analysis and estimation applied pro...
Bus 640 week 2 assignment consumer demand analysis and estimation applied pro...ENTIRE COURSES FINAL EXAM
 

Similar to Mysqlbyjp (20)

12th information practices mysql practice questions
12th information practices mysql practice questions12th information practices mysql practice questions
12th information practices mysql practice questions
 
06 impq introduction_to_mysql
06 impq introduction_to_mysql06 impq introduction_to_mysql
06 impq introduction_to_mysql
 
dbms unit 2 c 3.pdf
dbms unit 2 c 3.pdfdbms unit 2 c 3.pdf
dbms unit 2 c 3.pdf
 
Case Problem: Loan.xisx
Case Problem: Loan.xisxCase Problem: Loan.xisx
Case Problem: Loan.xisx
 
SQL practice questions set - 2
SQL practice questions set - 2SQL practice questions set - 2
SQL practice questions set - 2
 
Assignment#09
Assignment#09Assignment#09
Assignment#09
 
MortgageCalculator.javaMortgageCalculator.java  The mortga.docx
MortgageCalculator.javaMortgageCalculator.java  The mortga.docxMortgageCalculator.javaMortgageCalculator.java  The mortga.docx
MortgageCalculator.javaMortgageCalculator.java  The mortga.docx
 
CSCE 1030 Project 2 Due 1159 PM on Sunday, March 28, 2021
CSCE 1030 Project 2 Due 1159 PM on Sunday, March 28, 2021CSCE 1030 Project 2 Due 1159 PM on Sunday, March 28, 2021
CSCE 1030 Project 2 Due 1159 PM on Sunday, March 28, 2021
 
Auto lock box
Auto lock boxAuto lock box
Auto lock box
 
As with all projects in this course, your program’s output wil.docx
As with all projects in this course, your program’s output wil.docxAs with all projects in this course, your program’s output wil.docx
As with all projects in this course, your program’s output wil.docx
 
My sql advacnce topics
My sql advacnce topicsMy sql advacnce topics
My sql advacnce topics
 
MySQL 指南
MySQL 指南MySQL 指南
MySQL 指南
 
CS225 Fundamentals of Computer ScienceCourse SyllabusFall 2013Dr.docx
CS225 Fundamentals of Computer ScienceCourse SyllabusFall 2013Dr.docxCS225 Fundamentals of Computer ScienceCourse SyllabusFall 2013Dr.docx
CS225 Fundamentals of Computer ScienceCourse SyllabusFall 2013Dr.docx
 
Ch05 P24 Build a Model Spring 1, 201372212Chapter 5. Ch 05 P24 B.docx
Ch05 P24 Build a Model Spring 1, 201372212Chapter 5. Ch 05 P24 B.docxCh05 P24 Build a Model Spring 1, 201372212Chapter 5. Ch 05 P24 B.docx
Ch05 P24 Build a Model Spring 1, 201372212Chapter 5. Ch 05 P24 B.docx
 
Modernization of Northwood Housing Society using Salesforce CRM
Modernization of Northwood Housing Society using Salesforce CRMModernization of Northwood Housing Society using Salesforce CRM
Modernization of Northwood Housing Society using Salesforce CRM
 
Modernization of northwood housing society using salesforce crm
Modernization of northwood housing society using salesforce crmModernization of northwood housing society using salesforce crm
Modernization of northwood housing society using salesforce crm
 
You can use a calculator to do numerical calculations. No graphing.docx
You can use a calculator to do numerical calculations. No graphing.docxYou can use a calculator to do numerical calculations. No graphing.docx
You can use a calculator to do numerical calculations. No graphing.docx
 
Bus 640 week 1 assignment economics of risk and uncertainty applied problems ...
Bus 640 week 1 assignment economics of risk and uncertainty applied problems ...Bus 640 week 1 assignment economics of risk and uncertainty applied problems ...
Bus 640 week 1 assignment economics of risk and uncertainty applied problems ...
 
Bus 640 week 2 assignment consumer demand analysis and estimation applied pro...
Bus 640 week 2 assignment consumer demand analysis and estimation applied pro...Bus 640 week 2 assignment consumer demand analysis and estimation applied pro...
Bus 640 week 2 assignment consumer demand analysis and estimation applied pro...
 
Micro credit
Micro creditMicro credit
Micro credit
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 

Recently uploaded (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

Mysqlbyjp

  • 1. SQL COMMAND BY JP KHUNTIA 1. Create the database loans. 2. Use database loans. 1. Create table loan_accounts and insert tuples in it.
  • 2. Display details of all the loans. Display the accno, cust_name and loan_amount of all the loans.
  • 3. Display details of all the loans with less than 40 installments Display the accno and loan_amount of all the loans started before 01-04-2009. Display the int_rate of all the loans started after 01-04-2009. Display the details of all the loans whose rate of interest is null.
  • 4. Display the amount of various loans from the table loan_accounts. A loan amount should appear only once. Display the cust_name and loan_amount for all the loans which do not have number of installments 36. Display the cust_name and loan_amount for all the loans for which the loan amount is less than 500000 or int_rate is more than 12. Display the details of all the loans whose rate of interest is in the range 11% to 12%.
  • 5. Display the cust_name and loan_amount for all the loans for which the number of installments are 24, 36, or 48. Display the details of all the loans whose loan_amount is in the range 400000 to 500000. Display the accno, cust_name, loan_amount for all the loans for which the cust_name ends with “khuntia”. Display the accno, cust_name, and loan_amount for all the loans for which the cust_name contains ‘i’ as the second last character.
  • 6. Display the details of all the loans in the ascending order of their loan_amount. Display the details of all the loans in the descending order of their start_date. Put the interest rate 11.50% for all the loans for which interest rate is null. For each loan replace interest with (loan_amount * int_rate*installments)/12*100.
  • 7. Delete the records of all the loans of “j.khuntia”. Add another category of type char(1) in the loan_accounts table. Select cust_name , length(cust_name), lcase(cust_name), Ucase(cust_name) from loan_accounts where int_rate <11.00; Select dayname(start_date) from loan_accounts; Select round(int_rate*110/100,2) from loan_accounts where int_rate >10; Select pow(4,3), pow(3,4);
  • 8. Select round(543.5694,2) , round(543.5694), round(543.5634,-1); Select truncate(543.5694,2), truncate(543.5694,-1); Select concat(“jyoti”, “ prakash”) “full name”; Select year(curdate()), month(curdate()), day(curdate()); Select mid(“information”,3,4),substr(“technology”,3);