I want to insert information into a table only if a particular column entry value is less than or equal to another column value in a parent record. Is this possible with SQL, and if so an example would be very much appreciated.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Yes. With the scant information you’ve provided, this is the best I can do:
The select from parent_table will return one row or no rows – resulting in one row or no rows being inserted.