This document presents a methodology for applying text mining techniques to SQL query logs from the Sloan Digital Sky Survey (SDSS) SkyServer database. The methodology involves parsing, cleaning, and tokenizing SQL queries to represent them as feature vectors that can be analyzed using data mining algorithms. Experimental results demonstrate clustering SQL queries using fuzzy c-means clustering and visualizing relationships between queries using self-organizing maps. The methodology is intended to provide insights into database usage patterns from analysis of the SQL query logs.