Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6713369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:22:22+00:00 2026-05-26T08:22:22+00:00

I want to build SQL command. I have 2 tables, the first one has

  • 0

I want to build SQL command.

I have 2 tables,
the first one has :

songname - string
genre - int

The second has :

genre - int
genrename - string

I want to build a command that will do insert:

INSERT INTO Songs (songname,genre) VALUES (blablabla,*)

and instead of the * I want to take the value from the second table where genrename is equal to 3 for example.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:22:22+00:00Added an answer on May 26, 2026 at 8:22 am
    INSERT INTO Songs (songname,genre) 
    SELECT 'blablabla', S.VALUE
    FROM SECONDTABLE S
    WHERE genrename = 3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to build an SQL string to do database manipulation (updates, deletes, inserts,
I need help to build SQL query. I have 2 tables table PROJECT and
I have a .sql script and I want to build a database from it.
I have built an application that uses SQL Express 2005 and I want to
I want to build a lightweight linux configuration to use for development. The first
I want to build two-dimentional array of strings where length of one dimention is
i want to build a generic search window using linq to sql. This is
I need some help to build SQL Query. I have table having data like:
i have a variable and an user_name i want to search on a string(function_description)
I want to build a single select stored procedure for SQL 2005 that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.