Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. tag cloud

tag cloud

Scheduled Pinned Locked Moved ASP.NET
csharptutorialasp-netdatabasesql-server
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shah zad
    wrote on last edited by
    #1

    hi can some one guide me how to build a tag cloud specially its data fetching. i am using asp.net 1.1 with c# and sql server 2k. details i have problem in counting the tags. i am storing the tags in a single column as varchar entry seprated by space, dont catch up with the idea how to get the distinct tags from single column and then got their weight as well thanks in advance

    shezi

    M 1 Reply Last reply
    0
    • S shah zad

      hi can some one guide me how to build a tag cloud specially its data fetching. i am using asp.net 1.1 with c# and sql server 2k. details i have problem in counting the tags. i am storing the tags in a single column as varchar entry seprated by space, dont catch up with the idea how to get the distinct tags from single column and then got their weight as well thanks in advance

      shezi

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      4GuysFromRolla have an article[^] on this very topic.

      S 1 Reply Last reply
      0
      • M Mike Ellison

        4GuysFromRolla have an article[^] on this very topic.

        S Offline
        S Offline
        shah zad
        wrote on last edited by
        #3

        i had seen it before. but that is a very simple case just count the products against a category, while i am storing tags in a single column seprated by space first need to get the indivisual tag and then its weight but got problem in making query. need guidance regarding how to fetch tags and their weight from single column of a table

        shezi

        modified on Monday, January 21, 2008 2:36:47 AM

        C 1 Reply Last reply
        0
        • S shah zad

          i had seen it before. but that is a very simple case just count the products against a category, while i am storing tags in a single column seprated by space first need to get the indivisual tag and then its weight but got problem in making query. need guidance regarding how to fetch tags and their weight from single column of a table

          shezi

          modified on Monday, January 21, 2008 2:36:47 AM

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          shah zad wrote:

          while i am storing tags in a single column seprated by space first need to get the indivisual tag and then its weight but got problem in making query

          Well, if you normalise your data model you won't have that problem. You should only ever store a single piece of data in a column value. You should not be storing multiple tags in a single row. You need to create a new table and split the tags out into the new table. Then set up a many-to-many join between your original table and your tags table. A many-to-many join requires the setting up of an intermediate table.

          shah zad wrote:

          need guidance regarding how to fetch tags and their weight from single column of a table

          While it is possible, it is increadibly inefficient and goes against decades of guidance on how to define relational databases.

          Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Follow up on hiring a software developer * The Value of Smaller Methods My website | blog

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups