Aggregate functions in sql in tamil | group by and aggregate functions in sql | having clause in sql

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ต.ค. 2024
  • #oracle#sql#sqltutorial
    📌 Join WhatsApp chat for any Oracle SQL help or interview discussion
    chat.whatsapp....
    In this video, we’ll learn what the Oracle aggregate functions in sql in tamil. SQL Aggregate Functions - SUM, AVG, COUNT, MIN, MAX Functions
    aggregate functions in oracle
    aggregate functions in sql
    aggregate functions in sql in tamil
    group by and aggregate functions in sql
    group by in sql
    having clause in sql
    group by clause in sql in tamil
    group by clause in sql in tamil
    ORA-00937: not a single-group group function
    Notes:
    drive.google.c...
    drive.google.c...
    Aggregate Functions:
    select max(salary) from employees;
    select min(salary) from employees;
    select sum(salary) from employees;
    select count(salary) from employees;
    select avg(salary) from employees;
    We should not select non-aggregate column with aggregate column.
    select first_name,max(salary) from employees;
    ORA-00937: not a single-group group function
    whenever we want to use wise keyword, use group by.
    Filter condition on resultant of group by clause - We have to use having clause.
    Having clause is always come with group by group by + having
    select department_id,sum(salary) from employees group by department_id;
    The order of keywords in any oracle SQL statement.
    1.from
    2.where
    3.group by
    4.having
    5.order by

ความคิดเห็น • 41

  • @NICITACADEMY
    @NICITACADEMY  2 ปีที่แล้ว +2

    *Complete 48 hours of Self-Paced Courses and Interview Questions Links:*
    courses.nicitacademy.com/
    Are you interested in joining my Live training? or Self-Paced course?

    You can visit our website for more details.
    www.nicitacademy.com/
    Contact me for more details @ 🌕 wa.link/m4lat0
    *WhatsApp group:*
    chat.whatsapp.com/KMN5pKoLGSu8PuFLxSouB0
    Thanks,
    NiC IT Academy
    =======================================================================
    🔵Oracle SQL Tutorial - English
    th-cam.com/play/PLsphD3EpR7F9mmtY2jBt_O8Q9XmvrhQEF.html
    📌*IICS demo session:*
    th-cam.com/video/C1zGVRFM3-A/w-d-xo.html
    📌*Informatica Full Course:*
    th-cam.com/video/V2FtZ_INmjg/w-d-xo.html
    📌*SQL Full Course:*
    th-cam.com/video/iuvzjf7nU1I/w-d-xo.html
    📌*Informatica, IICS, and SQL playlist*
    🌕 IICS Tutorial ENGLISH - Playlist
    th-cam.com/play/PLsphD3EpR7F9sqnL3R0jeETHP08Touklj.html
    🌕 Informatica training in ENGLISH - Playlist
    th-cam.com/play/PLsphD3EpR7F9HtxQHfoRAStSWAuF7zBfd.html
    🌕 Informatica Interview Preparation - ENGLISH
    th-cam.com/play/PLsphD3EpR7F-z_PFoL-uFc9_4DEnYsR3d.html
    🌕Oracle SQL - தமிழில்
    th-cam.com/play/PLsphD3EpR7F-u4Jjp_3fYgLSsKwPPTEH4.html
    🔵 Informatica training in தமிழில் - Playlist
    th-cam.com/play/PLsphD3EpR7F8dOIX6bhpv3fnZ8Io_WrH3.html
    🔵 Informatica Interview Preparation - TAMIL
    th-cam.com/play/PLsphD3EpR7F8MoCdaGFY_xO7mMfT3fvnD.html
    🔵Unix for Informatica Developer
    th-cam.com/play/PLsphD3EpR7F8jeo31oVNJ0yG9AaD-5_jw.html
    🌕Informatica Project videos
    th-cam.com/play/PLsphD3EpR7F98r1Mp4QGT9iYmTNwyzPa6.html
    Please subscribe, Like, and comment. I will post more videos.
    Thanks

  • @vijayarajan-bt5fk
    @vijayarajan-bt5fk 2 หลายเดือนก่อน +1

    Sir நா உங்க பெரிய fan ❤❤❤ ✨⭐ ✨ ✨

    • @NICITACADEMY
      @NICITACADEMY  2 หลายเดือนก่อน

      Thank you Vijayarajan.

  • @sanjeevehandpicks
    @sanjeevehandpicks ปีที่แล้ว +1

    Sir, literally u r greatest. U r doing honesty for wt u doing with '0' error. U cleared many queries in this session which I had before. . . Chanceless sir u r 🔥🔥🔥

    • @NICITACADEMY
      @NICITACADEMY  ปีที่แล้ว

      It's my pleasure. keep watchin my channel.

  • @guganguga8871
    @guganguga8871 3 ปีที่แล้ว +1

    Superb 👍

  • @Phoenix-wd2qw
    @Phoenix-wd2qw 2 ปีที่แล้ว +1

    Can you please provide the query for 8) In which skillset, highest number of employees are working?

  • @srinithikrishnanm1990
    @srinithikrishnanm1990 9 หลายเดือนก่อน

    Good evening sir please help to find out the problem this , Write a query to find department which has lowers percentage(Employee Table)

  • @Aathi_A3
    @Aathi_A3 ปีที่แล้ว +1

    sir, how to link the foreign key values with the child table representing the values
    eg 10-sales 20-marketing
    in another table
    output
    emp name1 10 sales
    empname2 10 sales
    empname 44 20 marketing

    • @NICITACADEMY
      @NICITACADEMY  ปีที่แล้ว

      Please watch my SQL sessions 1 to 10 to understand fully.

  • @Arunkumar-gi9eq
    @Arunkumar-gi9eq 3 ปีที่แล้ว +1

    Select Emp_name , Count (city_name) from employee group by Emp_name having count(City_name) order by Desc:

  • @pk-ds7gg
    @pk-ds7gg 2 ปีที่แล้ว +2

    Sir do you upload the trigger video sir?

  • @SanjayKumarK-um5no
    @SanjayKumarK-um5no ปีที่แล้ว +1

    Superb explanation sir where we can get the excel file? Description la irukka drive link it's not working

  • @bkssathish78
    @bkssathish78 2 ปีที่แล้ว +1

    1)SELECT COUNT(EMP_ID) FROM EMPLOYEE;
    2)SELECT CITY_NAME,COUNT(EMP_ID) FROM EMPLOYEE GROUP BY CITY_NAME;
    3)SELECT COUNTRY,COUNT(EMP_ID) FROM EMPLOYEE GROUP BY COUNTRY;

  • @ktmlover9585
    @ktmlover9585 3 ปีที่แล้ว +2

    eppty naan unkala contact pantrathu sir...?enaaku normalisation la doubt erukku sir.....ennoda answer crt aandu theriyala sir....plz reply

    • @NICITACADEMY
      @NICITACADEMY  3 ปีที่แล้ว +1

      nicitacademy@gmail.com

  • @sudhakannan4746
    @sudhakannan4746 2 ปีที่แล้ว +1

    🙏🙏🙏❤❤❤❤

  • @sanjanasara252
    @sanjanasara252 3 ปีที่แล้ว

    8)Select skillset,count(*) as total employee from employees group by skillset order by 2 desc limit 1;

    • @NICITACADEMY
      @NICITACADEMY  3 ปีที่แล้ว +1

      Kindly note Oracle Database does not have the LIMIT clause.
      In the alias name no space allowed, count(*) as total employee. it should be count(*) as total_employee. Keep try. Happy learning.

  • @vmcricmad3537
    @vmcricmad3537 2 ปีที่แล้ว +1

    Bro i need to find the department id of student who have more marks on maths!! Answer sollunga

    • @NICITACADEMY
      @NICITACADEMY  2 ปีที่แล้ว

      Please watch all my SQL sessions and practice it.

  • @nijamudeen.s7541
    @nijamudeen.s7541 3 ปีที่แล้ว

    👍

  • @bkssathish78
    @bkssathish78 2 ปีที่แล้ว

    4)SELECT COUNTRY,COUNT(EMP_ID) FROM EMPLOYEE GROUP BY COUNTRY HAVING COUNTRY="INDIA";

    • @NICITACADEMY
      @NICITACADEMY  2 ปีที่แล้ว

      Good work

    • @nivetharavi2369
      @nivetharavi2369 ปีที่แล้ว

      @@NICITACADEMY Sir, in having, aggregation function should only filter it, having country = 'india' is a non-aggregation column , is it possible ?

  • @sanjanasara252
    @sanjanasara252 3 ปีที่แล้ว +1

    I cant find 8th ques sir

    • @NICITACADEMY
      @NICITACADEMY  3 ปีที่แล้ว +1

      Kindly practice all the queries. I will post answer. Keep learning.

  • @rajachinna9954
    @rajachinna9954 3 ปีที่แล้ว +1

    Please help me, I couldn't solve 8) In which skillset, the highest number of employees are working?
    1) Find the total number of employees?
    select count(emp_name)
    from emp_test;
    2) Find the city-wise total number of employees?
    select city_name,count(emp_name)as Total_emp
    from emp_test
    group by city_name;
    3) Find the total number of employees in each country?
    select country,count(emp_name)as Total_emp
    from emp_test
    group by country;
    4) Find the total number of employees in India?
    select country,count(emp_name)as Total_emp
    from emp_test
    where country='india'
    group by country;
    5) Find the cities where more than 3 employees are working in India?
    select city_name,count(emp_name)as Total_emp
    from emp_test
    where country='india'
    group by city_name
    having count(emp_name)>3
    6) who is the youngest person?
    select Emp_name,Dob from emp_test
    where dob=(select max(dob)from emp_test);
    7) who is the eldest employee?
    select Emp_name,Dob from emp_test
    where dob=(select min(dob)from emp_test)
    9) Is there any employee with the same name?
    select emp_name, count(*) from emp_test
    group by emp_name
    having count(*)>1 ----Answer is Yes
    10) is there any duplicate employee_id?
    select emp_id, count(*) from emp_test
    group by emp_id
    having count(*)>1 -----Answer is NO

    • @NICITACADEMY
      @NICITACADEMY  3 ปีที่แล้ว

      Hi Raja, I highly appreciate your effort and answers. for the 8th question, I will make one more video, so that you can solve that. Keep try and give me for some more time to publish. :)

    • @NICITACADEMY
      @NICITACADEMY  3 ปีที่แล้ว

      select * from
      (select skillset,count(*) from employee_skills group by skillset order by 2 desc) where rownum

    • @NICITACADEMY
      @NICITACADEMY  3 ปีที่แล้ว

      -- select the top 3 working skillset based on employee count
      select * from
      (select skillset,count(*) from employee_skills group by skillset order by 2 desc) where rownum

    • @sophiajose1797
      @sophiajose1797 3 ปีที่แล้ว

      @@NICITACADEMY if suppose any 2 of the jobskills having same number of highest employees then how will write the query ,need your answers

    • @sophiajose1797
      @sophiajose1797 3 ปีที่แล้ว

      @@NICITACADEMY If we don't know about the skillet having more than one highest values ,in this query the row num returns single value only then how will find another highest values