SHOW AVAILABLE OFFERS¶
Lists the offers that are available to the user who runs the command.
Syntax¶
SHOW AVAILABLE OFFERS [ LIKE '<pattern>' ] IN LISTING <listing>
Parameters¶
LIKE 'pattern'
Optionally filters the command output by object name. The filter uses case-insensitive pattern matching, with support for SQL wildcard characters (
%
and_
).For example, the following patterns return the same results:
... LIKE '%testing%' ...
... LIKE '%TESTING%' ...
. Default: No value (no filtering is applied to the output).
IN LISTING listing
The listing associated with the offer you want shown.
Output¶
The command output provides offer properties and metadata in the following columns:
Column |
Description |
---|---|
|
The offer name. |
|
Offer status, one of:
|
|
The date and time the offer state was last updated. |
|
The preferred date for consumer listing access, one of:
|
|
The total contract value. |
|
The contract type, one of:
|
|
The contract duration in months. |
|
The preferred invoicing start date, one of:
|
|
The date and time invoicing started. |
|
Specifies a default offer is included with the pricing plan, one of:
|
|
The offer name visible to consumers. |
|
The date and time the offer expires. |
|
Additional pricing plan parameters, one of:
|
|
The date and time consumers lose access to the listing. |
|
The date and time consumers can access the listing. |
|
The offer discount. |
|
The consumer the offer targets. |
|
The terms of service associated with the offer. |
|
Additional offer information. |
|
The pricing plan associated with the offer. |
|
The date and time the offer was last updated. |
Access control requirements¶
Privilege |
Object |
Notes |
---|---|---|
|
Global |
This privilege grants the ability to purchase a paid listing. If you don’t have a role with this privilege, contact your account administrator. |
For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.
For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Usage notes¶
To show available offers, you need the PURCHASE DATA EXCHANGE LISTING privilege on the offer.
To post-process the output of this command, you can use the pipe operator (
->>
) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.The output column names for this command are generated in lowercase. If you consume a result set from this command with the pipe operator or the RESULT_SCAN function, use double-quoted identifiers for the column names in the query to ensure that they match the column names in the output that was scanned. For example, if the name of an output column is
type
, then specify"type"
for the identifier.
Examples¶
Show all available offers with names that start with myoffer
in mylisting
:
SHOW AVAILABLE OFFERS LIKE 'MYOFFER%' IN LISTING MYLISTING;