1.

What is the functional difference between Row and Column based storage? Where do we use Row based storage and column based storage?

Answer»

Consider below table- FCTSales

CountryProductUnits Sold
Englandiphone 6107
IndiaSamsung Note 6250
USLenovo A110110

Row Based Storage

  • England
  • Iphone6
  • 107
  • India
  • Samsung Note 6
  • 250
  • US
  • Lenovo A110
  • 110

Column Based Storage

  • England
  • India
  • US
  • Iphone6
  • Samsung Note6
  • Lenovo A110
  • 107
  • 250
  • 110

Where to use Row based storage?

Select * from FCTSales where Country=’US’

Where to use Column based storage?

Select SUM(Units_sold) from FCTSales where Product=’Lenovo A110’



Discussion

No Comment Found