A degreaser is intended to clean a surface, so remove contamination. A degreaser is designed specifically to remove oils, greases, and lubricants. Sanitizers are intended to kill various pathogenic agents, like bacteria and viruses. There are materials that can do both, like 70% isopropyl alcohol (per CDC guidelines for hard surface disinfecting), but don’t assume all degreasers will kill pathogens.
The ingredients of a degreaser can vary wildly depending on the product. Generally speaking, they fall into 2 camps: 1) solvent cleaners: this includes alcohols (like isopropyl alcohol, or ethyl alcohol), hydrocarbons (like heptane and mineral spirits), ketones (like acetone and xylene), and more exotic compounds and blends. 2) water-based cleaners: these include ingredients dissolved or blended with water. Which is best for your application depends on the type of soil and various requirements like performance, evaporation rate, toxicity limits, and environmental regulations.
Windex (or other similar glass cleaners) could be considered a very light-duty degreaser. Glass cleaners can remove very light oils, like fingerprints, but will fall very short with heavier oils, greases and lubricants. Techspray offers a foaming glass cleaner (part #1625-18S) and water-based Eco-Shine (1505-QT) for light cleaning, and products like G3 Maintenance Cleaner (1630-16S), PWR-4 Maintenance Cleaner (3400-20S), and E-LINE Maintenance Cleaner (1620-10S) for more heavy-duty oils, greases and lubricants.