ACCENTURE SQL INTERVIEW QUESTION | Friends categories

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

Комментарии • 3

  • @saktibiswal6445
    @saktibiswal6445 19 дней назад

    Thanks

  • @Maturshab2210
    @Maturshab2210 12 дней назад

    What if we do a group by?

  • @parthchauhan9305
    @parthchauhan9305 19 дней назад +1

    DROP TABLE IF EXISTS friends;
    CREATE TABLE friends
    (
    friend1 VARCHAR(50),
    friend2 VARCHAR(50)
    )
    ;
    INSERT INTO Friends VALUES
    ("Robin","Rahul"),
    ("Prithvi","Rahul"),
    ("John","Rahul"),
    ("Rahul","Robin"),
    ("Rahul","Prithvi"),
    ("Rahul","John")
    ;
    SELECT * FROM friends;