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

  • Home
  • SEARCH
  • 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 8712751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:10:35+00:00 2026-06-13T05:10:35+00:00

I have this 2 following SQL Queries on my grails controller: def query1 =

  • 0

I have this 2 following SQL Queries on my grails controller:

def query1 = sql.rows("select abc from table_one where cond = 1")

The return result from query1 gives me [{abc=5}]

def query2 = sql.rows("select req from table_two where abc = " +query1)

I am having an error trying to run query2 and I have no idea why.

the column name abc exist in both table_one and table_two, I am trying to fetch the value of abc from table_one, whereby cond = 1, and assign it to variable query1.

and with query2, I am trying to get the values of req from table_two, whereby the value of abc in table_two is equals to the value of query1.

any help on this?

Error message from query2:

Message:Unclosed quotation mark after the character string '[abc:5]'.
  • 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-06-13T05:10:36+00:00Added an answer on June 13, 2026 at 5:10 am

    You join the table using INNER JOIN

    select  b.req
    from    table_one a
            INNER JOIN table_two b
                ON a.abc = b.abc
    where   a.cond = 1
    

    the following syntax is ANSI SQL-92.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two sql queries: $query0=mysql_query(SELECT caseNumber FROM shipped_data WHERE palette='P0' AND shipInvoiceNumber='2011/229'); $query1=mysql_query(SELECT
I have the following SQL code: select val.PersonNo, val.event_time, clg.number_dialed from vicidial_agent_log val join
I am having trouble with the following SQL statement. I have had this issue
I have this following IEnumerable LINQ query: var query = from p in Enumerable.Range(2,
I am using RIA services with Entity Framework- I have the following sql select
I have the following simple MySQL query: SELECT SQL_NO_CACHE mainID FROM tableName WHERE otherID3=19
I have two SQL queries: A. SELECT (upper(rtrim(ltrim(lastname))) + upper(rtrim(ltrim(firstname))) + upper(rtrim(ltrim(middlename))) + rtrim(ltrim(v))
For my SQL queries, I usually do the following for SELECT statements: SELECT ...
I have the following query: SELECT col1, col2, col3 FROM tb1 WHERE col4=ANY( SELECT
I am having an issue with sql server precision. I have the following queries:

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.