Skip to content
oraclesql
  • Home
  • Blog
  • About
  • Contact
  • Guest Post
Menu Close
  • Home
  • Blog
  • About
  • Contact
  • Guest Post

sql query

Home » sql query
sql query

SQL- query to find out the distinct values from two tables

There are two tables tabA1 tabA2 NUM CODE CODE ITEMS 1001 A A paper 1002 B C milk 1003 C E paper 1004 A 1005 B 1006 B output should…

0 Comments
October 12, 2020
sql query

SQL – Write the query to compute the start and end of group in the giving missing sequence of number

INPUT OUTPUT Should be output should like this o is group1,1 is group2,2 is group 3... Final Query select min(c) min_range,max(c) max_range from t_seq group by c-rownum order by 1

0 Comments
October 6, 2020
sql query

Reverse a string in Oracle SQL without using REVERSE() function

The query Output Another method select utl_i18n.raw_to_char( utl_raw.reverse( utl_i18n.string_to_raw(' nice blog '))) as reverse_string from dual; output Using reverse() select reverse ('welcome') from dual; output

0 Comments
October 5, 2020
Consolidate two rows as single row
sql query

Consolidate two rows as single row

First and last records of table1 into table2 has to be single rowSecond and last but second row of table1 into table2 input OUTPUT should be Employee1 data insert into…

0 Comments
October 5, 2020
sql query

Write a query to find data between two time interval ?

I retrieve data from this demo table (e62) The Query Output

0 Comments
October 4, 2020
sql query

Query to display string in vertical form

INPUT WELCOME OUTPUT The Query

0 Comments
October 4, 2020
sql query

Turning a Comma Separated string into individual rows

Sample Table CREATE TABLE Testdata ( SomeID INT, OtherID INT, String VARCHAR(MAX) ) INSERT Testdata SELECT 1, 9, '18,20,22' INSERT Testdata SELECT 2, 8, '17,19' INSERT Testdata SELECT 3, 7,…

0 Comments
October 4, 2020
sql query

Find out last 4 rows inserted rows ?

Retrieve data from emp table Emp table find out the last last 4 rows inserted

0 Comments
October 4, 2020
sql query

sql – how to split full name into first and middle and last name

If I have a table with a column that contains fullnames such as : select * from name table; name table IDNAME101sachin ramesh tendulkar102virat koholi103rabi sastri104thakur ramesh kar105pratap ram sek…

0 Comments
October 3, 2020
sql query

Find out in which year maximum number of employee has been recruited ?

Retrieve data from emp table The Query select to_char(hiredate,'yyyy'),count(*) from emp group by to_char(hiredate,'yyyy') having count(*)>=(select max(count(*)) from emp group by to_char(hiredate,'yyyy')) ;

0 Comments
October 2, 2020
  • 1
  • 2
  • Go to the next page

Search

Recent Posts

  • COALESCE Function SQL
    November 16, 2020/
    0 Comments
  • LEAST Function In SQL
    November 7, 2020/
    0 Comments
  • GREATEST Function in SQL
    November 6, 2020/
    0 Comments

Newsletter

Get all latest content delivered to your email a few times a month. Updates and news about all categories will send to you.
Email is required. Email not valid.
This field is required
Thanks for your subscription.
Failed to subscribe, please contact admin.

Categories

  • Logical Storage Structure
  • Oracle Database Architecture
  • Physical Storage Structure
  • sql commands
  • sql function
  • sql intro
  • sql query
  • string function
  • Uncategorized

oraclesql

Welcome to oraclesql.in  – A platform to learn, and grow  your oracle database carrier  or digital marketer.

Newsletter

Get all latest content delivered to your email a few times a month. Updates and news about all categories will send to you.
Email is required. Email not valid.
This field is required
Thanks for your subscription.
Failed to subscribe, please contact admin.
Copyright @ 2020