0% found this document useful (0 votes)
53 views1 page

Important Queries

The document discusses SQL queries to select employee records from a table where salary is between two values. It also shows a LOAD DATA INFILE statement used to bulk insert records into another table from a file where fields are delimited by commas and enclosed in double quotes, with optional trailing null columns and column names specified.

Uploaded by

imranbaiggeek
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views1 page

Important Queries

The document discusses SQL queries to select employee records from a table where salary is between two values. It also shows a LOAD DATA INFILE statement used to bulk insert records into another table from a file where fields are delimited by commas and enclosed in double quotes, with optional trailing null columns and column names specified.

Uploaded by

imranbaiggeek
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

-- produce no result

select * from emp where sal between 7000 and 5000

-- produce result which lies between 5000 and 7000


select * from emp where sal between 5000 and 7000

LOAD DATA INFILE


*
APPEND INTO TABLE emp1
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'

TRAILING NULLCOLS
(
empno,
ename,
sal,
comm,
deptno
)

BEGINDATA
2222, "IMRAN BAIG", ,22, 20
3222, "IMRAN,BAIG", 3222, 32, 20
4222, "IMRAN&BAIG", 4222, 42, 30

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy