What is a "Scalar" Query?
Asked Answered
L

3

31

I am using LLBLGEN where there is a method to execute a query as a scalar query. Googling gives me a definition for scalar sub-query, are they the same ?

Lakin answered 6/12, 2013 at 13:20 Comment(1)
My guess, repeat guess, is that it is a query that returns one row with one record. Something like select count(*) from etc.Kleinstein
C
52

A scalar query is a query that returns one row consisting of one column.

Cobber answered 6/12, 2013 at 13:27 Comment(0)
O
10

For what it's worth:

Scalar subqueries or scalar queries are queries that return exactly one column and one or zero records.

Source

Offshore answered 14/6, 2017 at 23:25 Comment(0)
H
8

A scalar method is used for aggregate functions such as max, min, sum, avg and so on. Whenever you want to return a single value after execute the query.

Hollandia answered 21/6, 2015 at 5:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.