SQL*Plus (MOSC)

MOSC Banner

need changes in sql output

edited Jan 29, 2013 5:36PM in SQL*Plus (MOSC) 9 commentsAnswered
I need some changes in result as below... the current query provide me output as below and also i mention here what i need as output.

Please refer excel sheet, which is attached with this thread.    filename : sql_change.xls

SQL QUERY

====================


SELECT
  option_type_id,
  option_type,
  option_description,
  module_type,
  static_option_mapping,
  parent_option_id,
  purchased_option_id,
  release_type,
  pool_id,
  pool_name,
  SUM(access_type_count) total_option_count,
  availablecount,
  DECODE(access_type, 'SC', assignedcount) sc_assigned,
  DECODE(access_type, 'SO', assignedcount) so_assigned,
  DECODE(access_type, 'SC', availablecount) sc_availablecount,
  DECODE(access_type, 'SO', availablecount) so_availablecount,

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center