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 6770041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:15:54+00:00 2026-05-26T15:15:54+00:00

var1 = 2 (count from a table) var2 = 3 (count from another table)

  • 0

var1 = 2 (count from a table)
var2 = 3 (count from another table)

I am writing a query

Select 
'Factor1 (' + var1 + ')' as NEW_FACTOR,
'Factor2 (' + var2 + ')' as ANOTHER_FACTOR
FROM SomeTable

ResultSet should be

Factor1 (2) Factor2 (3)

How do I append in Oracle?

  • 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-26T15:15:54+00:00Added an answer on May 26, 2026 at 3:15 pm

    You would use the || operator to concatenate strings

    SELECT 'Factor1 (' || var1 || ')' new_factor,
           'Factor2 (' || var2 || ')' another_factor
      FROM SomeTable
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose you have a string: SELECT * FROM TABLE WHERE column1 = :var1 AND
SELECT var1,var2,var3,table_name FROM table1 LEFT JOIN table_name on var3=table_name.id Meaning I want to dynamically
I have the following Python code: cursor.execute("INSERT INTO table VALUES var1, var2, var3,") where
I have a table like this; var1 var2 var3 cats a b b cat1
Consider I have the following dictionary: dic={} dic[var1]=val1 dic[var2]=val2 Now I have another object
I want to do SELECT @var1, @var2 INTO #myTempTable I keep getting error There
When debugging the following code NSString *var1 = @blaa; NSString *var2 = @blaaaaa; NSString*
I'm trying to make unordered list of variables in var1 occurs twice and var2
I have a data frame with gaps like this: Var1 Var2 Var3 1 NA
with a new array I do this: $aVal = array(); $aVal[key1][var1] = something; $aVal[key1][var2]

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.